[2059] recording problems arise when connecting mysql-8.0.17 Navicat Premium - Authentication plugin 'caching_sha2_password' .... error

Problem Description:

  Navicat Premium connection mysql-8.0.17 appears 2059 when - Authentication plugin 'caching_sha2_password' can not be loaded: ...... error

problem analysis:

  Mysql8 in versions prior to encryption rule is mysql_native_password, and after mysql8, encryption rules are caching_sha2_password.

Solution:

  1. Log database: mysql - u root -p;

  2. Switch database: use mysql;

  3. Modify the encryption method: the ALTER the USER 'the root' @ 'localhost' the IDENTIFIED BY 'password' PASSWORD the EXPIRE NEVER;

  4. Update the password: the ALTER the USER 'root' @ 'localhost' IDENTIFIED BY the WITH mysql_native_password 'own new password';

  5. Refresh permissions: FLUSH PRIVILEGES;

  Note: Many have no Step 3 on the blog, only step 4, making frequent error, thanks to this blog .

Guess you like

Origin www.cnblogs.com/waterbbro/p/11373973.html