Hi,
I am trying to connect to my own server (mysql), from another server i just bought.
I searched the net to no avail, and this thread doesnt work for me (http://forums.cpanel.net/showthread.php?t=78345)
I have added the new servers ip to my old servers firewall, and it still wont connect, i get this error.
This is the php code i am using....Can't connect to MySQL server on '*.*.*.*' (4)
// Database configuration details:
$dbHost = "*.*.*.*:3306";
$dbUser = "user";
$dbPass = "password";
$dbName = "database";
// Connect to MySQL:
if (!$dbase = @mysql_connect($dbHost, $dbUser, $dbPass))
{
die(mysql_error());
}
Any simple instructions on how to do this please?
Thanks!



LinkBack URL
About LinkBacks
Reply With Quote







