問題 mysql 8 的密碼驗證方式是 caching_sha2_password,而舊版本都是 mysql_native_password,所以會出錯。

WIN10 MYSQL 設定檔路徑 C:\ProgramData\MySQL\MySQL Server 8.0\my.ini

[mysqld]
port=3306
character-set-server=utf8
default_authentication_plugin=mysql_native_password

[mysql]
default-character-set=utf8

[client]
default-character-set=utf8

Comments powered by CComment