I had this error before you most likely have more than 1 instance of MySQL running ad each of ur applications is linking/accessing a different one. try
mysqld stop
or
sudo mysqld stop
Then try restart both applications and you should now be able to create a database with navicat and find it using terminal