Sequel Pro 客户端连接 MySQL 失败
2019.01.15 19:06 字数 235 阅读 1235评论 0喜欢 0
问题
安装完毕 MySQL,启动 MySQL后,Sequel Pro 连接 MySQL 失败。
账号密码都是正确的,却一直连接不上!!
报错如下:
Unable to connect to host127.0.0.1,orthe request timed out.Be sure that the addressiscorrectandthat you have the necessary privileges,ortryincreasing the connection timeout (currently10seconds).MySQL said: Authentication plugin'caching_sha2_password'cannot be loaded: dlopen(/usr/local/lib/plugin/caching_sha2_password.so,2): imagenotfound
解决
原来是安装 MySQL 时,只设置了 Use Strong Password Encryption 密码。
Use Legacy Password Encryption
两者的区别,如截图上说的:
使用 Use Strong Password Encryption 非当前连接者&客户端可能无法连接
使用 Use Legacy Password Encryption 设置一个新密码(与Use Strong Password Encryption不能相同),作为客户端连接时的密码。
使用 Use Legacy Password Encryption 设置一个新密码
然后,重启 MySQL服务,使用客户端连接,注意使用 Legacy Password 。
连接成功
当设置完成Legacy Password 后,若在客户端再次使用 Strong Password 连接,会提示没有权限。
再次使用 Strong Password 连接
友情提示
Mac 设置 Legacy Password 的界面,在这里找。
打开系统偏好设置
MySQL配置界面
打开MySQL,点击 Initialize Database 按钮,即可进入设置页面
Initialize Database
sequel pro 闪退
下载build版本。1.2版本的不再维护了。