mysql 8.0 安装后,通过Sequel Pro连接报错

 

现象描述:

  mac安装mysql版本为8.0.19,安装后,本地访问可以登录(mysql -uroot -p),通过客户端Sequel Pro登录失败;

报错信息:

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

  

解决方法: 
  ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; 

原因

  mysql8.0 默认的身份验证插件是caching_sha2_password,修改为mysql_native_password即可

  可以查询user表中的身份验证插件:

  

 

posted @ 2020-06-20 07:41  persistgo  阅读(555)  评论(0)    收藏  举报