mysql8.0 Authentication plugin 'caching_sha2_password' cannot be loaded
Posted 习惯沉淀
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql8.0 Authentication plugin 'caching_sha2_password' cannot be loaded相关的知识,希望对你有一定的参考价值。
安装mysql8.0后使用navicat创建连接, 然后报如题所示警告.可参考如下解决方案:
8.0改变了身份验证插件,改成使用老版本的身份验证插件方式就好了。
我的操作步骤:
1.修改C:\\ProgramData\\mysql\\MySQL Server 8.0\\my.ini文件中,caching_sha2_password改为mysql_native_password
#default_authentication_plugin=caching_sha2_password
default_authentication_plugin=mysql_native_password
2.修改mysql密码, 重启mysql服务就ok了.
cd "C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin"
C:\\Program Files\\MySQL\\MySQL Server 8.0\\bin> mysql -u root -p
Enter password: *********
mysql> ALTER USER \'root\'@\'localhost\' IDENTIFIED WITH mysql_native_password BY \'newrootpassword\';
Query OK, 0 rows affected (0.10 sec)
mysql> exit
========================================我是分割线==========================================
感谢:
1.https://www.cnblogs.com/zzqc/p/9192217.html
2.https://blog.csdn.net/zixiao217/article/details/80156362
以上是关于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数据库链接不上: