Resolving database connection error: 2059 - Authentication plugin 'caching_sha2_password' cannot be loaded: ×.◆09..g

Noon Translation: "Unable to load authentication plugin containing SHA2 cipher:"

The permissions plugin  caching_sha2_password cannot be loaded.

problem analysis

The default authentication plug-in before 8.0 is mysql_native_password.
The default authentication plug-in after 8.0 is caching_sha2_password
. The reason why an error will be reported here is also mentioned above: when the 5.7 client connects to the 8.0 server, because the default authentication plug-in is different, it will Error causing the plug-in to fail to load

Note: Currently, most MySQL clients have not been upgraded to the 8.0 authentication method, so common connection tools such as Navicat, Sequel Pro, SQLyog, etc. may have this problem.
 

solve


Change the MySQL 8.0 authentication plug-in back to mysql_native_password

Modify the identity authentication plug-in to mysql_native_password

ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'password';

Refresh permissions 

FLUSH PRIVILEGES;

OK, now use Navicat to connect to MySQL and you will be successful. 

The final explanation is that your Navicat version is too low (if you use Navicat), that is, the version of the mysql connection client you are using is too low. 
 

Guess you like

Origin blog.csdn.net/m0_63636799/article/details/129456699