[已解決]報錯: 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