首页 > 数据库技术 > 详细

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

时间:2018-08-01 20:14:05      阅读:369      评论:0      收藏: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

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

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

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