1. 程式人生 > >使用navicat 連線mysql出現1251錯誤

使用navicat 連線mysql出現1251錯誤

連線總是出現錯誤,故在此記錄一下解決方法

方法來自:https://blog.csdn.net/XDMFC/article/details/80263215

錯誤:Client does not support authentication protocol requested by server; consider upgrading MySQL client

解決方法:mysql -u root -p 

輸入密碼 進入root使用者

mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;

mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123';

mysql> FLUSH PRIVILEGES;