2059-authentication plugin 'caching_sha2_password "cnnot bt loaded: mysql8.0 not connected database (Navicat)

The reason : 8.0 changed the authentication plug-in, open my.ini (or my.cofg) can be seen to change its previous 5.7 way: mysql_native_password

Method:
1: command line, type the database:
mysql -uroot -p
2: After you type the password, execute:
ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY '密码';
Change the password to your own password database;
Eventually: Query OK, 0 rows affected (0.04 sec) is successful;

Guess you like

Origin www.cnblogs.com/java-bhp/p/11331224.html