Posted by David Haynes on 07/07/06 18:31
Luca wrote:
> I'have Easy PHP in localhost and i need connect php page (local) to remote
> database:
>
> $db_host = "62.149.225.23";
> $db_user = "gfo";
> $db_password = "gfo";
> $db_name = "gfonline";
> $db = mysql_connect($db_host, $db_user, $db_password);
>
> The browser show this message:
>
> Warning: mysql_connect(): Can't connect to MySQL server on '62.149.225.23'
> (10061) in e:\php\gfonline.it\provaremoto.php on line 7
>
> Bye
> Luca
Can you connect using the mysql command line?
If not, check for firewall ports and remote db server running.
-david-
Navigation:
[Reply to this message]
|