mysql 連接錯誤1251

1、安裝mysql 後,鏈接失敗,報1251錯誤,部分緣由是mysql8.0的plugin與以前的版本有差別。報錯如圖:

2、解決方法以下

  1.查看mysql用戶,命令以下 select host,user,plugin,authenticationstring from mysql.user;mysql

   2.修改root用戶密碼,命令:alter user 'root'@ 'localhost' identified with mysql_native_password by '本身的新密碼';sql

             更新下:plush privileges;ide

   3.再次鏈接,鏈接成功。(本機使用navicat鏈接)spa

相關文章
相關標籤/搜索