Database Research & Development

  • Home
  • NoSQL
    • NoSQL
    • Cassandra
  • Databases
    • Database Theory
    • Database Designing
    • SQL Server Coding Standards
    • SQL Server
    • PostgreSQL
    • MySQL
    • Greenplum
    • Linux
  • Interviews
    • SQL Server Interviews
    • MySQL Interviews
    • SQL Puzzles
  • DBA Scripts
    • SQL Server DBA Scripts
    • PostgreSQL DBA Scripts
    • MySQL DBA Scripts
    • Greenplum DBA Scripts
  • Home
  • Blog Archives !
  • (: Laugh@dbrnd :)
  • Contact Me !
sqlserverinterviews
Home 2016 January 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

This article is half-done without your Comment! *** Please share your thoughts via Comment ***

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

I got the above error when one of my client machines were accessing MySQL Server.
By default, MySQL does not allow the 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.

1
2
3
4
5
6
7
8
root# mysql -u root -p
password:
 
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:

1
/etc/mysql/my.cnf

Comment following lines:

1
2
#bind-address = 127.0.0.1
#skip-networking

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

Restart MySQL Server:

1
root #> mysql restart

Login in MySQL and change the grant privileges:

1
mysql> GRANT ALL ON *.* to root@'%' IDENTIFIED BY 'root_password';

Please also make sure that port 3306 is opend which is default port of MySQL Database Server.

Jan 11, 2016Anvesh Patel
SQL Server 2014: Create Memory Optimized File Group and TableMySQL: Check, Optimize and Repair Tables using Mysqlcheck
Comments: 6
  1. julis
    January 11, 2016 at 8:54 pm

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

  2. Ami
    January 18, 2016 at 9:44 pm

    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!

  3. Falve
    January 23, 2016 at 7:11 pm

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

  4. Spidermoose
    November 20, 2018 at 10:48 pm

    After long hours of searching … finally this worked … awesome!! Thank you šŸ™‚

  5. Coiriepaush
    April 28, 2019 at 7:50 am

    Hello. And Bye.

  6. Alok
    July 19, 2019 at 2:24 pm

    I am not able to login to mysql. How can change the permission?

Anvesh Patel
Anvesh Patel

Database Engineer

January 11, 2016 MySQL, MySQL DBA ScriptAnvesh Patel, database, database research and development, dbrnd, MySQL, MySQL Command, MySQL Database Administrator, MySQL Database Designing, MySQL Database Programming, MySQL Error, MySQL Performance Tunning, MySQL Query, MySQL Tips and Tricks, remote
About Me!

I'm Anvesh Patel, a Database Engineer certified by Oracle and IBM. I'm working as a Database Architect, Database Optimizer, Database Administrator, Database Developer. Providing the best articles and solutions for different problems in the best manner through my blogs is my passion. I have more than six years of experience with various RDBMS products like MSSQL Server, PostgreSQL, MySQL, Greenplum and currently learning and doing research on BIGData and NoSQL technology. -- Hyderabad, India.

About DBRND !

dbrnd

This is a personal blog (www.dbrnd.com).

Any views or opinions represented in this blog are personal and belong solely to the blog owner and do not represent those of people, institutions or organizations that the owner may or may not be associated with in professional or personal capacity, unless explicitly stated.

Feel free to challenge me, disagree with me, or tell me I’m completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or anonymous comments) - so keep it polite.

The content of this website is protected by copyright. No portion of this website may be copied or replicated in any form without the written consent of the website owner.

Recent Comments !
  • Anvesh Patel { Sure will do... } – May 27, 12:43 PM
  • Anvesh Patel { Great... } – May 27, 12:41 PM
  • Anvesh Patel { Great... } – May 27, 12:39 PM
  • Anvesh Patel { Great... } – May 27, 12:36 PM
  • Anvesh Patel { Great... } – May 27, 12:28 PM
  • Anvesh Patel { Great... } – May 27, 12:27 PM
  • Anvesh Patel { Great... } – May 27, 12:16 PM
  • Older »
Follow Me !
  • facebook
  • linkedin
  • twitter
  • youtube
  • google
  • flickr
Ā© 2015 – 2019 All rights reserved. Database Research & Development (dbrnd.com)
Posting....