Many users are using Navicat Premium Authentication plugin 'caching_sha2_password' can not be loaded error occurs when the MySQL database connection 12.
This occurs because the version prior to mysql8 encryption rule is mysql_native_password, and after mysql8, encryption rules are caching_sha2_password, to solve the problem in two ways, one is to upgrade navicat drive, one is the mysql user password encryption rule reduced to mysql_native_password.
Here a second way, the solution is as follows
1. The administrator privileges to run the command prompt, landing MySQL (remember to add environment variables)
mysql -u root -p
password: # Login mysql
2. Modify the account password to encrypt user passwords and update rules
ALTER USER 'root' @ 'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; # modify the encrypted rules
ALTER USER 'root' @ 'localhost' IDENTIFIED WITH mysql_native_password BY 'password'; # update about the user's password
3. permission to refresh and reset the password
FLUSH PRIVILEGES; # refresh permission
The above two steps corresponding to the screenshot
Reset Password command alone: alter user 'root' @ 'localhost' identified by '111111';
Now open again Navicat Premium 12 connect to the MySQL database you will find the problem can be successfully connected the
reference:
https://blog.csdn.net/u011182575/article/details/80821418
https://blog.csdn.net/huangyuehong914/article/details/80503195