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


这个是因为,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';

本文参考网络


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM