1. 程式人生 > >MYSQL出現1251 client does no support authentic錯誤

MYSQL出現1251 client does no support authentic錯誤

USE mysql; 
ALTER USER ‘root’@’localhost’ IDENTIFIED WITH mysql_native_password BY ‘831015’; 
FLUSH PRIVILEGES;

root是使用者名稱,localhost是ip地址127.0.0.1都是特指本機,mysql_native_password是舊的密碼驗證機制,831015是密碼,最後別忘了分號;

最後問題解決: