安裝mysql8.*之後,出現連線不上的問題

NO IMAGE
1 Star2 Stars3 Stars4 Stars5 Stars 給文章打分!
Loading...

錯誤為:Failed to Connect to MySQL at 10.211.55.6:3306 with user root 

Authentication plugin ‘caching_sha2_password’ cannot be loaded

大概是新的mysql加密方式所用的查件,navicat不支援。

解決方案在

https://stackoverflow.com/questions/49194719/authentication-plugin-caching-sha2-password-cannot-be-loaded?noredirect=1&lq=1

方法是

cd "C:\Program Files\MySQL\MySQL Server 8.0\bin"--你mysql所在的目錄
C:\Program Files\MySQL\MySQL Server 8.0\bin> mysql -u root -p
Enter password: *********
mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密碼';
mysql> exit

相關文章

程式語言 最新文章