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 I received the above MySql Error.

Solution :

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

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

Try Out Code2care Dev Tools:


Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


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, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR -