I am trying to create a mysql database with navicat but when i try to link to it it gives me an error in:
我正在尝试使用navicat创建一个mysql数据库但是当我尝试链接到它时它给了我一个错误:
'connect': Unknown database 'hello' (Mysql2::Error)
Or when i search for existing databases in terminal (see image ) they do not all show up. Not sure where i am making a mistake?
或者当我在终端中搜索现有数据库时(见图),它们并不全都显示出来。不确定我在哪里弄错了?
1 个解决方案
#1
1
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
我有这个错误之前你很可能有超过1个MySQL运行实例的广告,你的每个应用程序都链接/访问另一个。尝试
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
然后尝试重新启动两个应用程序,您现在应该能够使用navicat创建数据库并使用终端找到它
#1
1
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
我有这个错误之前你很可能有超过1个MySQL运行实例的广告,你的每个应用程序都链接/访问另一个。尝试
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
然后尝试重新启动两个应用程序,您现在应该能够使用navicat创建数据库并使用终端找到它