preface
When opening remote access permission on windows, we searched a lot of information. Most of the commands explaining how to open remote MySQL remote service are as follows:
grant all privileges on *.* to 'root'@'%' identified by 'Your passwords' with grant option
This method is not applicable to the version after MySQL 8.0.
you need to use the following command to start the remote service.
CREATE USER 'root'@'%' IDENTIFIED BY 'Your passwords';
GRANT ALL ON *.* TO 'root'@'%';
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'Your passwords';
After the three commands are executed in sequence, refresh the permissions:
FLUSH PRIVILEGES;
Actual effect:
Read More:
- MYSQL Use cmd to change root password error: ERROR 1064 (42000): You have an error in your SQL syntax; check the manual tha
- MySQL Build table error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL ser
- [Solved] java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corres
- MySQL Change password failure prompt: ERROR 1064(42000):You have an error in your SQL syntax: check the corresponds to your M
- ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
- [Solved] mysql 2003 remote access failed mysql8 configure remote access
- [Solved Perfectly] MySQL ERROR 1064 (42000): You have an error in your SQL syntax;
- Bulk Update Error: #Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the m
- MYSQL Insert Data Error: check the manual that corresponds to your MySQL server version for the right syntax
- MYSQL syntax Error: check the manual that corresponds to your
- [Solved] pymysql.err.ProgrammingError: (1064, ‘You have an error in your SQL syntax;
- Error 1064 (42000): you have an error in your SQL syntax
- Remote connection to MySQL database error: is not allowed to connect to this MYSQL server solution
- Docker: How to Solve MYSQL8 & Navicat remote connection error
- After installing mysql5.7 on centos7, an error 1045 (28000) is reported: access denied for user ‘root’ @’localhost ‘(using PAS)
- [Solved] Error 1044: Access denied for user ‘syz-remote‘@‘%‘ to database ‘webapp‘
- [Solved] there are special symbols in the initial password for installing MySQL in Hadoop, and an error is reported
- [Solved] MySQL: Syntax error or access violation: 1055 Expression #1 of SELECT list is not …
- [Solved] mysqldump: Error: ‘Access denied; you need (at least one of) the PROCESS privilege(s) for this opera
- MYSQL Error 1045 (28000): access denied for user ‘root’ @’localhost ‘(using password: Yes)