mysql8.0 Authentication plugin 'caching_sha2_password' cannot be loaded
Posted bj-xiaodao
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql8.0 Authentication plugin 'caching_sha2_password' cannot be loaded相关的知识,希望对你有一定的参考价值。
最近新下载的mysql8.0在我设置密码之后登陆的时候报错
进入容器中
docker exec -it mysql bash
进入mysql 命令行
ALTER USER ‘root‘@‘%‘ IDENTIFIED WITH mysql_native_password BY ‘root‘;
这flush privileges; 就可以解决
以上是关于mysql8.0 Authentication plugin 'caching_sha2_password' cannot be loaded的主要内容,如果未能解决你的问题,请参考以下文章
mysql8.0 Authentication plugin 'caching_sha2_password' cannot be loaded
mysql8.0 Authentication plugin 'caching_sha2_password' cannot be loaded
mysql8.0 Authentication plugin 'caching_sha2_password' cannot be loaded
连接mysql8.0版本出现1251--Client does not support authentication protocol requested by server的解决
PHP连接mysql8.0出错“SQLSTATE[HY000] [2054] The server requested authentication method unknow.....
2059-authentication plugin 'caching_sha2_password"cnnot bt loaded :mysql8.0数据库链接不上: