The reason for this problem is: the different encryption rules before and after MySQL8 cause the problem, now let’s deal with it.
Windows system operation steps, Linux can refer to
Run CMD with administrator command
mysql -u root -p
If the command fails, the environment variable is not configured. After configuring the environment variable, execute it, or go to the bin folder of MySQL installation directory to execute the above statement.
Modify encryption rules
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER;
update user password
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
refresh permission
FLUSH PRIVILEGES;
reset password
ALTER USER 'root'@'localhost' IDENTIFIED BY 'NEW_PASSWORD';
After the modification is completed, go to Navicat to test the connection, and you can succeed.
Read More:
- [Solved] MySQL 8 Connect Navicat error: error 2059
- [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;
- [Solved] Navicat connection error 1251 compatibility with docker MySQL
- Docker: How to Solve MYSQL8 & Navicat remote connection error
- Mysql5.7.18.1 Error 1054 (42S22): Unknown Column’password’ In’field List’ When Changing User Password
- MYSQL Enter password:ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost:3306‘
- Docker mysql8 modify password
- MYSQL Error 1045 (28000): access denied for user ‘root’ @’localhost ‘(using password: Yes)
- Remote connection to MySQL database error: is not allowed to connect to this MYSQL server solution
- [Solved] MySQL Error: Client does not support authentication protocol requested by server
- mysql ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executin
- host ‘‘ is not allowed to connect to this mysql server Connect MYSQL Error
- [Solved] there are special symbols in the initial password for installing MySQL in Hadoop, and an error is reported
- [Solved]Error 1054 (42s22): unknown column ‘password’ in ‘field list’ how to modify the password
- [Solved] ERROR 2002 (HY000): Can’t connect to local MySQL server through socket’/var/lib/mysql/mysql.sock’ (2)
- MySQL Change password failure prompt: ERROR 1064(42000):You have an error in your SQL syntax: check the corresponds to your M
- [Solved] MYSQL Command Execute Error: Can ‘t connect to local MySQL server through socket ‘/tmp/mysql.sock ‘(2) “
- How to Fix MySQL ERROR 1130 (HY000): Host ‘XXXX’ is not allowed to connect to this MySQL server
- linux mysql ERROR 1820 (HY000): You must SET PASSWORD before executing this statement