Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

MySQL Connect Error


Recommended Posts

I get the following error when I try to run the index.php file -


Warning: mysql_connect() [function.mysql-connect]: Host '' is not allowed to connect to this MySQL server in C:\Program Files\Apache Group\Apache2\htdocs\catalog\includes\functions\database.php on line 19

Unable to connect to database server!


I only get this error if I am physically connected to the internet with my ethernet cable. If I unplug the cable, I can run index.php with no problem.


Can someone please tell me how to fix this? Thanks.

Link to comment
Share on other sites

Try changing to localhost in







Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile


Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.


For links mentioned in old answers that are no longer here follow this link Useful Threads.


If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...