ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## F&Q ## 一,客户端连接报:Unable to load authentication plugin 'caching_sha2_password'. Unable to load authentication plugin 'caching_sha2_password'. 高版本的mysql的密码使用sha2加密方式,低版本的客户端默认使用的native方式,需要修改身份验证机制; ### 1,登录Mysql ``` mysql -uxxxx -pxxxx ``` ### 2,查看当前验证机制 ``` use mysql select user,host,plugin,authentication_string from user; ``` ![](https://img.kancloud.cn/25/69/2569d56d504c755ed54905d090c36d68_1581x276.png) ### 3,修改身份验证机制 ``` alter user 'root'@'localhost' identified with mysql_native_password by 'xxxxxx' ; alter user 'root'@'%' identified with mysql_native_password by 'xxxxxx' ; flush privileges; ``` ### 4,查看当前验证机制 ``` select user,host,plugin,authentication_string from user; ``` ![](https://img.kancloud.cn/69/34/6934434abdb6117657aac1462056eae7_624x193.png)