sequel pro 连接mysql_Sequel Pro 客户端连接 MySQL 失败

问题

安装完毕 MySQL,启动 MySQL后,Sequel Pro 连接 MySQL 失败。

账号密码都是正确的,却一直连接不上!!

报错如下:

Unable to connect to host 127.0.0.1, or the request timed out.

Be sure that the address is correct and that you have the necessary privileges, or try increasing the connection timeout (currently 10 seconds).

MySQL said: Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(/usr/local/lib/plugin/caching_sha2_password.so, 2): image not found

解决

原来是安装 MySQL 时,只设置了 Use Strong Password Encryption 密码。

6b4fa7b87547

Use Legacy Password Encryption

两者的区别,如截图上说的:

使用 Use Strong Password Encryption 非当前连接者&客户端可能无法连接

使用 Use Legacy Password Encryption 设置一个新密码(与Use Strong Password Encryption不能相同),作为客户端连接时的密码。

6b4fa7b87547

使用 Use Legacy Password Encryption 设置一个新密码

然后,重启 MySQL服务,使用客户端连接,注意使用 Legacy Password 。

6b4fa7b87547

连接成功

当设置完成Legacy Password 后,若在客户端再次使用 Strong Password 连接,会提示没有权限。

6b4fa7b87547

再次使用 Strong Password 连接

友情提示

Mac 设置 Legacy Password 的界面,在这里找。

打开系统偏好设置

6b4fa7b87547

MySQL配置界面

打开MySQL,点击 Initialize Database 按钮,即可进入设置页面

6b4fa7b87547

Initialize Database

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值