MySQL 8.0 error 2059: Authentication plugin 'caching_sha2_password' cannot be loaded
生活随笔
收集整理的這篇文章主要介紹了
MySQL 8.0 error 2059: Authentication plugin 'caching_sha2_password' cannot be loaded
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
安裝MYSQL8.0+版本之后,使用可視化管理工具Workbench或者Navicat都會產生一個類似的報錯。
原因:MYSQL8.0之前的版本中加密規則為mysql_native_password. 而mysql8之后的加密規則為caching_sha2_password.
解決辦法:
打開CMD進入MYSQL,執行下面的命令
alter user ‘root’@‘localhost’ identified by ‘123456’ password expire never;
alter user ‘root’@‘localhost’ identified with mysql_native_password by ‘123456’; # 更新用戶的密碼
flush privileges; # 刷新權限
總結
以上是生活随笔為你收集整理的MySQL 8.0 error 2059: Authentication plugin 'caching_sha2_password' cannot be loaded的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: oracle mysql 常用语句(查询
- 下一篇: 十六进制转八进制(java)