首页 > 其他 > 详细

[已解决]报错: Unable to load authentication plugin 'caching_sha2_password'.

时间:2021-03-07 00:06:39      阅读:30      评论:0      收藏:0      [点我收藏+]

这个是因为,mysql8之前的版本使用的密码加密规则是mysql_native_password,但是在mysql8则是caching_sha2_password,所以需要修改密码加密规则。

1、进去mysql 8.0 command line client

2、输入use mysqlselect user,host,plugin,authentication_string from user;

可以看到如下的界面,即用户的密码加密规则

技术分享图片

3、alter user ‘root‘ @‘localhost‘ identified with mysql_native_password by ‘admin‘;

技术分享图片

本文参考网络

[已解决]报错: Unable to load authentication plugin 'caching_sha2_password'.

原文:https://www.cnblogs.com/hankleo/p/14491005.html

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