If you try to connect to a remote MySQL database from your client system, you will get “ERROR 1130: Host is not allowed to connect to this MySQL server” message as shown below.
1.Try to telnet server from client machie
# mysql -h 10.10.28.8 -u root -p
Enter password:
ERROR 1130: Host '10.10.28.8' is not allowed to connect to this MySQL server
1.Try to telnet server from client machie
# telnet 192.168.1.8 3306 host 10.10.28.8 is not allowed to connect to this mysql server
2.To allow a specific client ip-address (10.10.28.8) to access the mysql database running on a server,# mysql -u root -p
Enter password:
mysql> use mysql
mysql> GRANT ALL ON *.* to root@'10.10.28.8' IDENTIFIED BY '$dfg!23';
mysql> FLUSH PRIVILEGES;
That's it.....It should work!!!!
No comments:
Post a Comment