MySQL: ERROR 1130: Host is not allowed to connect to this MySQL server

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 ip address, please execute below command.

If you want to allow user from any network, you should perform the below steps.

Change MySQL config file:

Comment following lines:

If skip-networking line is not present, you can add it and comment it.

Restart MySQL Server:

Login in MySQL and change the grant privileges:

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, 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.

More from

Leave a Reply

3 Comments on "MySQL: ERROR 1130: Host is not allowed to connect to this MySQL server"

Notify of
Sort by:   newest | oldest | most voted

Hello, yup this piece of writing is genuinely pleasant and I
have learned lot of things from it regarding blogging.


I’m still learning from you, but I’m improving myself. I definitely liked reading everything that is posted on your website.Keep the information coming. I loved it!


I was studying some of your blog posts on this site and I believe this web site is rattling informative ! Keep putting up.