Navcat error 1521 when connecting to Mysql

The reason is that the new version of MySql password encryption algorithm has changed, resulting in the old version of Navcat connection error.

solution:

  1. Upgrade Navcat

   Because it is only the local Mysql, so this method has not been verified, network transmission can be, not introduced here.

  2. Modify Mysql encryption type

  Log in to Mysql and execute the following command:

The ALTER  the USER  ' root ' @ ' localhost ' IDENTIFIED the WITH mysql_native_password BY  ' 123456 ' ; # modify the encryption rule 
 the ALTER  the USER  ' root ' @ ' localhost ' IDENTIFIED BY  ' 123456 ' PASSWORD EXPIRE NEVER; # update the user's password 
FLUSH PRIVILEGES ; # refresh permission

 

Guess you like

Origin www.cnblogs.com/pongyc/p/12743513.html