问题:html
链接Docker启动的mysql出现:ERROR 2059 (HY000): Authentication plugin
‘caching_sha2_password’ cannot be loadedmysqlC:\mysqldata>mysql -h 127.0.0.1 -P 13306 -uroot -p Enter password:
** ERROR 2059 (HY000): Authentication plugin ‘caching_sha2_password’ cannot be loaded: ÕÒ²»µ½Ö¸¶¨µÄÄ£¿é¡£sql
解决方案:docker
1.进入mysql容器windows
docker exec -it mysql2 /bin/bash
2.进入mysqlbash
mysql -uroot -pmima
3.修改密码markdown
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';
多是 MySQL 版本太新形成的》。。post
参考资料:spa
一、ERROR 2059 (HY000): Authentication plugin ‘caching_sha2_password’ cannot be loaded
http://www.javashuo.com/article/p-ehdvyjwu-my.html.net
二、2059 - authentication plugin ‘caching_sha2_password’ -navicat链接异常问题解决
https://blog.csdn.net/m0_38017782/article/details/80061991
实际上在windows server 2008 r2上 按照如上方法 安装 mysql 8.0时 密码依然不对,因此又加了两行
SET PASSWORD FOR 'root'@'localhost' = 'password';
flush privileges;