首页 > 数据库技术 > 详细

<亲测>用navicat连接mysql 8.0 报错2059

时间:2018-08-24 01:28:34      阅读:239      评论:0      收藏:0      [点我收藏+]

ERROR 2059 (HY000): Authentication plugin ‘caching_sha2_password‘ cannot be loaded

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/HeatDeath/article/details/80226934

问题:

连接Docker启动的mysql出现:ERROR 2059 (HY000): Authentication plugin 
‘caching_sha2_password’ cannot be loaded

C:\mysqldata>mysql -h 127.0.0.1 -P 13306 -uroot -p Enter password: 
** ERROR 2059 (HY000): Authentication plugin ‘caching_sha2_password’ cannot be loaded: ÕÒ²»µ½Ö¸¶¨µÄÄ£¿é¡£

解决方案:

1.进入mysql容器

docker exec -it mysql2 /bin/bash
  • 1

2.进入mysql

mysql -uroot -pmima
  • 1

3.修改密码

ALTER USER ‘root‘@‘%‘ IDENTIFIED WITH mysql_native_password BY ‘root‘;
  • 1

可能是 MySQL 版本太新造成的》。。

参考资料:

1、ERROR 2059 (HY000): Authentication plugin ‘caching_sha2_password’ cannot be loaded 
https://www.cnblogs.com/chuancheng/p/8964385.html

2、2059 - authentication plugin ‘caching_sha2_password’ -navicat连接异常问题解决 
https://blog.csdn.net/m0_38017782/article/details/80061991

 

<亲测>用navicat连接mysql 8.0 报错2059

原文:https://www.cnblogs.com/duanweishi/p/9527412.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!