Navicat connect to a remote database error: 1130 - Host "XX.XX.XX.XX" is not allowed to connect to this MySQL server
1. Connect server:
mysql -u root -p
2. To see all current database:
show databases;
3. Enter the mysql database:
use mysql;
4. Check the mysql database all the tables:
show tables;
5. View the user data table:
select Host, User from user;
Modify the user table 6. Host:
update user set Host='%' where User='root';
User to view the data in the table again:
select Host, User from user;
7. Refresh permissions:
flush privileges;
To connect again, it has won