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
![](https://img2018.cnblogs.com/blog/1433783/201911/1433783-20191103174521874-1039670646.png)
2. Select the database
Entry
use mysql
![](https://img2018.cnblogs.com/blog/1433783/201911/1433783-20191103174613181-1279649906.png)
3. Check the encryption rule
Entry
select Host,User,plugin from mysql.user;
![](https://img2018.cnblogs.com/blog/1433783/201911/1433783-20191103174632424-1565385048.png)
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;
![](https://img2018.cnblogs.com/blog/1433783/201911/1433783-20191103174648133-1515035180.png)
5. Check again encryption
select Host,User,plugin from mysql.user;
![](https://img2018.cnblogs.com/blog/1433783/201911/1433783-20191103174712864-656403794.png)
6. Now navicat to connect to the database and then on ok