Client does not support authentication protocol requested by server

關於因爲版本號碼不一樣而引發的 Client does not support authentication protocol requested by server 問題

搜索相似的問題,獲得的答案相似於下面mysql

mysql>SET PASSWORD FOR
'root'@'localhost' = OLD_PASSWORD('newpassword');sql

可是這些方法試了以後都是會提示語法的錯誤,以下:服務器

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'odl_password('123456')' at line 1server

爲此東找西找,發現了一個適用的方法:io

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的密碼';
FLUSH PRIVILEGES;cli

這樣以後 ,客戶端就忽然鏈接上了服務器搜索

解鎖用戶request

ALTER USER 'furrywall'@'localhost' ACCOUNT UNLOCK;語法


共勉密碼

相關文章
相關標籤/搜索