Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 navicat 创建一个 mysql 数据库,但是当我尝试链接到它时,它给了我一个错误:
'connect': Unknown database 'hello' (Mysql2::Error)
(见图)
或者当我在终端中搜索现有数据库时(见图),它们并没有全部显示出来。不知道我在哪里犯了错误?
在您很可能有超过 1 个 MySQL 实例运行广告之前,我遇到了这个错误,您的每个应用程序都在链接/访问不同的应用程序。尝试
mysqld stop
或者
sudo mysqld stop
然后尝试重新启动两个应用程序,您现在应该可以使用 navicat 创建数据库并使用终端找到它