Connection Failed: 1130 PHP MySQL Error


#1130 - Host 'localhost' is not allowed to connect to this 
MySQL server Connection for "root" as defined in your configuration 
failed. phpMyAdmin tried to connect to the MySQL server, and the
 server rejected the connection.

Check the host, username and password in your configuration and make 
sure that they correspond to the information given by the administrator
 of the MySQL server.

While trying to access a Web Url (hosted locally on IP 192.168.2.24) I received the above MySql Error.

Solution :

Just changing the domain IP : 192.168.2.24 to localhost resolved the issue.

If you want to access the page using the IP address you need to make changes to the config.inc.php file under PhpMyAdmin directory.




Recent Posts:




Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.