MySQL Forums
Forum List  »  Newbie

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




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.