MySQL reports an error: errorcode 1130, state HY000
Scenario: the following error is reported during springboot startup:
The XML configuration is as follows:
It can be started normally when writing 127.0.0.1 or localhost. After rewriting 192.168. X.x, an Error 1130 is reported.
Reason: MySQL does not have this permission
Solution:
-
- switch to the MySQL installation directory and execute: MySQL – U root – P enter the password
-
- execute the command to authorize the user: grant all privileges on. To ‘root’ @ ‘%’ identified by ‘root’; (%) It means that after all ip
-
- execute the above commands, refresh the permissions with the following command: flush privileges
- restart MySQL service
Read More:
- Springboot error: “errorcode 1045, state 28000” [How to Solve]
- [Solved] ERROR 2002 (HY000): Can’t connect to local MySQL server through socket’/var/lib/mysql/mysql.sock’ (2)
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’
- [Solved] CentOS installs MySQL and starts MySQL with error 2002 (HY000)
- Ubuntu ERROR 2003 (HY000): Can’t connect to MySQL server on ‘127.0.0.1’ (111)
- Mysql8.02/ubuntu 20 ERROR 1449 (HY000) [How to Solve]
- MYSQL Enter password:ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost:3306‘
- How to Fix MySQL ERROR 1130 (HY000): Host ‘XXXX’ is not allowed to connect to this MySQL server
- mysql ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executin
- linux mysql ERROR 1820 (HY000): You must SET PASSWORD before executing this statement
- MySQL 8.0 error 1114 (HY000): the table’sbtest1’is full (Fixed)
- ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’
- Mysql Flashback Warning: C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql.exe
- [Solved] ERROR 1396 (HY000): Operation ALTER USER failed for ‘root‘@‘localhost‘
- Remote connection to MySQL database error: is not allowed to connect to this MYSQL server solution
- MySql Install Error: Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘
- [Solved] MYSQL Command Execute Error: Can ‘t connect to local MySQL server through socket ‘/tmp/mysql.sock ‘(2) “
- [Solved] mysql 2003 remote access failed mysql8 configure remote access
- How to Solve can‘t connect to local mysql server through socket ‘/var/lib/mysql/mysql.sock‘
- MySQL Install Error: MySQL error 1042: Unable to connect to any of the specified MySQL hosts