Skip navigation links

MySQL Forums :: Newbie :: Warning: mysql_connect(): is not allowed to connect to this MySQL server in c:\inetpub\wwwroot\mysql_up.php on line 10


Advanced Search

Re: Warning: mysql_connect(): is not allowed to connect to this MySQL server in c:\inetpub\wwwroot\mysql_up.php on line 10
Posted by: timb ()
Date: October 20, 2004 07:36AM

Your script is not allowed to connect from that host (IP address). You have two choices. Either change the permissions to allow connections from that host or change your script to use a host that is allowed.

Since you are using php and Windows, I'm going to assume that this script is running on the same machine as the MySQL database you are trying to reach. In that case most likely all you need to do is change the host connection parameter to 'localhost' and it should run okay. If it doesn't you'll need to edit the permissions.

Options: ReplyQuote


Subject Written By Posted
Warning: mysql_connect(): is not allowed to connect to this MySQL server in c:\inetpub\wwwroot\mysql_up.php on line 10 Bill Cory 10/19/2004 11:55PM
Re: Warning: mysql_connect(): is not allowed to connect to this MySQL server in c:\inetpub\wwwroot\mysql_up.php on line 10 timb 10/20/2004 07:36AM
Re: Warning: mysql_connect(): is not allowed to connect to this MySQL server in c:\inetpub\wwwroot\mysql_up.php on line 10 Bill Cory 10/21/2004 06:22AM
Re: Warning: mysql_connect(): is not allowed to connect to this MySQL server in c:\inetpub\wwwroot\mysql_up.php on line 10 Bill Cory 10/21/2004 06:30AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.