2059 wrong solution navicat appear mysql connection

After installing navicat New Connection error occurred 2059

After online, we found the cause of errors in previous versions of mysql8 encryption rules mysql_native_password, and later in mysql8 encryption rules caching_sha2_password.

There are two ways to solve this problem, one is navicat updated driver to resolve this problem, one is to modify the encryption rule mysql user login is mysql_native_password. ; According to most online recommended a second way:

1. Open the window win + d input doc open cmd
Enter mysql sever installation bin directory input
mysql -u root -p
Enter the root password
 

 

 

2. Select the database
Entry
use mysql
 

 

 

3. Check the encryption rule
Entry
select Host,User,plugin from mysql.user;
 

 

 

Encryption is a new encryption method
4. Change back to the original encryption
Entry
ALTER USER 'root' @ 'localhost' IDENTIFIED WITH mysql_native_password BY'root user's password ';
Refresh
FLUSH PRIVILEGES;
 

 

 

5. Check again encryption
select Host,User,plugin from mysql.user;
 

 

 

6. Now navicat to connect to the database and then on ok

Guess you like

Origin www.cnblogs.com/manmanchanglu/p/11788235.html