MySQL – ERROR 1130: Host is not allowed to connect to this MySQL server.
I got this error when one of my client machine were accessing MySQL Server.
By default, MySQL does not allow remote client to connect the MySQL database server.
If you want to allow your client to access your mysql database server, you should give access permission to that IP-Address of the client.
If you want to give permission for 10.0.0.12 ip address, please execute below command.
root# mysql -u root -p
mysql> use mydb;
mysql> GRANT ALL ON *.* to root@'10.0.0.12' IDENTIFIED BY 'root_password';
mysql> FLUSH PRIVILEGES;
If you want to allow user from any network, you should perform the below steps.
Change MySQL config file:
Comment following lines:
#bind-address = 127.0.0.1
If skip-networking line is not present, you can add it and comment it.
Restart MySQL Server:
root #> mysql restart
Login in MySQL and change the grant privileges:
mysql> GRANT ALL ON *.* to root@'%' IDENTIFIED BY 'root_password';
Please also make sure that port 3306 is open on the server which is default port of MySQL Database Server.
Please share your ideas and opinions about this topic with me, your contribution will add true value to this topic.
If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.
If you like this post, then please share it with others.
Please follow dbrnd.com, I will share my experience towards the success of Database Research and Development Activity.
I put up a post every day, please keep reading and learning.
Discover Yourself, Happy Blogging !
Anvesh M. Patel.