navicat鏈接mysql出現Clientdoesnot

版權聲明:本文爲博主原創文章,未經博主容許不得轉載。 https://blog.csdn.net/u013700358/article/details/80306560mysql

今天安裝了navicat 和 mysql,結果最後在navicat中鏈接mysql時,出現了以下錯誤提示:sql

Client does not support authentication protocol requested by server; consider upgrading MySQL client
  • 1

登陸MySQL數據庫

執行命令爲:mysql -u root -p ide

回車後輸入密碼.net

選擇 mysql 數據庫code

執行命令爲:use mysql;server

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

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

最後問題解決: 
mysql錯誤解決 
感謝貼吧17樓大神:http://tieba.baidu.com/p/5658058140get

相關文章
相關標籤/搜索