【纠错】——mysql Authentication plugin ‘caching_sha2_password‘ is not supported问题处理
生活随笔
收集整理的這篇文章主要介紹了
【纠错】——mysql Authentication plugin ‘caching_sha2_password‘ is not supported问题处理
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
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 ‘你的用戶密碼’;
總結
以上是生活随笔為你收集整理的【纠错】——mysql Authentication plugin ‘caching_sha2_password‘ is not supported问题处理的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 5.Django 数据库多表查询
- 下一篇: Java 支付宝支付,退款,单笔转账到支