URGENT question about php and mysql?

isk2837

New member
Trying to connect a mysql database to a php page with this code: $db = mysql_connect("localhost","root","");
if (!$link) {
die('Not connected : ' . mysql_error());
}
but keep getting this error message: Not connected : A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Does anyone know of any reasons for this message, or failing that any way of finding out what's up? The username and password are right.
 
Back
Top