Errors encountered by Navicat connecting to Mysql

REEOR 2059

transferred from

When navicat links to versions later than mysql8, there will be an error of 2059. The reason for this error is that the encryption rule in versions before mysql8 is mysql_native_password, and the encryption rule after mysql8 is caching_sha2_password. There are two ways to solve this problem, one is to update the navicat driver to solve this problem, the other is to modify the encryption rule for mysql user login to mysql_native_password. This paper adopts the second method.

Solution:
win+r->cmd->Enter

mysql -u root -p
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; #修改加密规则  
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';  #更新一下用户的密码  
FLUSH PRIVILEGES; #刷新权限

write picture description here

ERROR 1045

The database password is wrong, because the last mistake was changed and the password was changed to password, hahaha

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325365761&siteId=291194637