Mac_Navicat Premium连接MySQL错误2059 - Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen(../Frameworks/caching_sha2_password.so, 2): image not found

mac下MySql启动连接报错:Authentication plugin ‘caching_sha2_password’ cannot be loaded: dlopen(/usr/local/mysql/lib/plugin/caching_sha2_password.so, 2): image not found。

问题:在连接数据库时不能加载‘caching_sha2_password’这个插件,也就是不能对身份验证。

解决方案:

1.打开系统偏好设置,找到mysql,点击Initialize Database.

2.输入你的新密码,记住这个密码,用于后期链接数据库的登陆使用.

3.选择‘Use legacy password‘.

4.重启mysql服务.

猜你喜欢

转载自www.cnblogs.com/george-007/p/11323418.html