Mysql 错误消息:无法连接到数据库服务器
我正在尝试设置我的SQL环境:Mysql 错误消息:无法连接到数据库服务器,mysql,sql,Mysql,Sql,我正在尝试设置我的SQL环境: MacOS Sierra 10.12.6 MySQL社区服务器8.0.16-macOS 10.14(x86,64位),DMG存档(我还没有找到更低版本) MySQL工作台8.0.16 MySQL-Workbench-community-6.3.10-macos-x86_64.dmg 我遵循以下指南: 对我来说,当我点击“测试连接”时,它会给出以下错误消息: Cannot Connect to Database Server Your connection a
- MacOS Sierra 10.12.6
- MySQL社区服务器8.0.16-macOS 10.14(x86,64位),DMG存档(我还没有找到更低版本)
- MySQL工作台8.0.16 MySQL-Workbench-community-6.3.10-macos-x86_64.dmg
Cannot Connect to Database Server
Your connection attempt failed for user 'root' from your host to server at 127.0.0.1:3306:
Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/mysql/lib/plugin/caching_sha2_password.so, 2): image not found
Please:
1 Check that mysql is running on server 127.0.0.1
2 Check that mysql is running on port 3306 (note: 3306 is the default, but this can be changed)
3 Check the root has rights to connect to 127.0.0.1 from your address (mysql rights define what clients can connect to the server and from which machines)
4 Make sure you are both providing a password if needed and using the correct password for 127.0.0.1 connecting from the host address you're connecting from
对于PC和Linux,我发现了与我类似的未回答问题
Authentication plugin 'caching_sha2_password' cannot be loaded:
dlopen(/usr/local/mysql/lib/plugin/caching_sha2_password.so, 2): image not found
您可以像这样更改密码的加密
ALTER USER 'yourusername'@'localhost' IDENTIFIED WITH mysql_native_password BY 'youpassword';
您只需使用PostgreSQL,它比MySQL简单得多 他们的主要网站: 您可以从这里下载macOS所需的版本: 我推荐Positures应用程序,因为它有一个GUI: 对于客户,我推荐pgAdmin 4:
还有一个教程视频:你做了系统告诉你要做的事情了吗???可能重复@nacho,我是编程新手。我只知道怎么看那个视频。当它要求时,我使用了相同的密码。我已经在视频@Matt中创建了该高级密码,但它与我的帖子无关,甚至与相同的错误消息也没有关系。@filt:你确定吗?逐字逐句,似乎都是同样的错误。你能详细说明为什么它不一样吗?例如,附加信息?这是终端命令吗?因为我现在根本无法开始编写SQL。@filt在您的终端中运行它:
netstat-apv-TCP
告诉我您看到了什么