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 ‘你的用戶密碼’;