#Error message:
the reason for this error is the encryption rule MySQL in versions before MySQL 8_native_Password, and the encryption rule after MySQL 8 is caching_sha2_password. There are two ways to solve this problem. One is to update the Navicat driver to solve this problem, and the other is to modify the encryption rules of MySQL user login to MySQL_native_password. The second method is adopted here
# solution
log in to the database
set the password to never expire
alter user 'root'@'localhost' identified by 'root' password expire never;
Set the encryption rule to MySQL_native_password
alter user 'root'@'localhost' identified with mysql_native_password by 'root';
Access Navicat again and you will be prompted that the connection is successful
Read More:
- [Solved] Navicat Connect MySQL error: Authentication plugin ‘caching_sha2_password‘ cannot be loaded
- [Solved] Navicat connection error 1251 compatibility with docker MySQL
- Docker: How to Solve MYSQL8 & Navicat remote connection error
- [Solved] There is a problem with mysql8.0 without password in Navicat connection
- Navicat connected to Mysql error: Client does not support authentication protocol requested by server;
- host ‘‘ is not allowed to connect to this mysql server Connect MYSQL Error
- [Solved] ERROR 2002 (HY000): Can’t connect to local MySQL server through socket’/var/lib/mysql/mysql.sock’ (2)
- [Solved] MYSQL Command Execute Error: Can ‘t connect to local MySQL server through socket ‘/tmp/mysql.sock ‘(2) “
- MySql Install Error: Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘
- Remote connection to MySQL database error: is not allowed to connect to this MYSQL server solution
- How to Solve can‘t connect to local mysql server through socket ‘/var/lib/mysql/mysql.sock‘
- MYSQL Enter password:ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost:3306‘
- C# Connect MYSQL Error: MySql.Data.MySqlClient.MySqlException:“SSL Connection error.”
- How to Fix MySQL ERROR 1130 (HY000): Host ‘XXXX’ is not allowed to connect to this MySQL server
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’
- MySQL Install Error: MySQL error 1042: Unable to connect to any of the specified MySQL hosts
- SqlSugar Connect MySql 8.0.29 Error [How to Solve]
- How to Solve c3p0 connect mysql8.0 Error
- Ubuntu ERROR 2003 (HY000): Can’t connect to MySQL server on ‘127.0.0.1’ (111)
- [Solved] MYSQL Connect Error: Communications link failure