Remote Connection to Mysql
| From: | Marcus Rigby | Date: | Thu, 21 Mar 2002 23:42:50 +0000 |
| Subject: | Remote Connection to Mysql | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-17852@lists.php.net to get a copy of this message | ||
Hi all,
I know there are plenty of remote connection posts here....but none have
helped me solve my problem.
I have 2 win98 machines on a novell network, both have static IP
addresses, and both machines can ping each other. One machine is
running a webserver and the other the Mysql server, and I cannot get
scripts on the webserver to connect to MySql.
Using :
$dbcnx = mysql_connect("xxx.xxx.xxx.xxx", "user", "pword");
if (!$dbcnx) {
echo( "<P>Unable to connect to the " .
"database server at this time.Try again later</P>" );
exit();
}
RESULTS in the error message Unable to connect to the database
server.....
When I do a netstat -a on the PC with MySQL I dont see any listening
ports, should there be.
Is anybody able to shed some light on this for me???
Thanks
Marcus