2059 error occurs when Navicat connects to Mysql8.0.11

Yesterday, in order to import a sql, I uninstalled mysql and reinstalled it. As a result, there is a problem with the command line, but when I use navicat to connect, I have been reporting an error of 2059.
write picture description here
I checked the Internet and found that the reason for this was the version before mysql8. The encryption rule is mysql_native_password, and after mysql8, the encryption rule is caching_sha2_password. There are two ways to solve the problem, one is to upgrade the navicat driver, and the other is to restore the mysql user login password encryption rule to mysql_native_password. I often say the first Two ways to solve the problem
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; #修改加密规则
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; #更新一下用户的密码
FLUSH PRIVILEGES; #刷新权限

Related Posts