新裝了mysql8.0後再用navicat連接就會報2059的錯誤。mysql
8.0以後mysql更改了密碼的加密規則,只要在命令窗口把加密方法改回去便可。sql
#其中單引號圈起的‘password’是你的數據庫密碼而不是字符password。 alter user root@localhost identified by 'password' password expire never; alter user root@localhost identified with mysql_native_password by 'password'; flush privileges;