2059-authentication plugin 'caching_sha2_password"cnnot bt loaded :mysql8.0数据库链接不上:

问题:最近数据库出了问题,就重新安装了数据库8.0,8.0建立数据库时出现问题,错误提示:

2059-authentication plugin 'caching_sha2_password"cnnot bt loaded :

错误提示出现了:
2059-authentication plugin 'caching_sha2_password"cnnot bt loaded :
 
原因8.0改变了 身份验证插件 , 打开 my.ini (或者my.cofg) 可以看到变更了 5.7及其以前的方式:mysql_native_password
 
解决办法:
1:命令行键入数据库:
mysql -uroot -p
2:键入密码后,执行:
ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY '密码';
密码更改为自己数据库的密码;
最终出现:Query OK, 0 rows affected (0.04 sec)则成功;

 参考博客:https://blog.csdn.net/zixiao217/article/details/80156362

原文地址:https://www.cnblogs.com/liguo-wang/p/9403522.html