mysql Authentication plugin 'caching_sha2_password' is not supported問題處理


使用mysql8.0版本,登錄失敗,提示 Authentication plugin 'caching_sha2_password' is not supported。

原因是在MySQL 8.0以后,默認的密碼加密方式是caching_sha2_password而不是mysql_native_password。

解決方法:

1.登錄mysql數據庫 mysql -u root -p

2.更新身份認證方式 ALTER USER '你的用戶名' IDENTIFIED WITH mysql_native_password BY '你的用戶密碼';


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM