"Can't connect to MySQL server..."

wxdqz

New Member
I'm new to MySQL and PHP and I've gotten stuck trying to connect to any mySQL server. I have MySQL on my server where my webserver is, but I cannot connect to it. I have tried putting anything into the host field like localhost, its real and local IP and its domain name, but it never connects. I have installed mySQL with the default settings. Whenever I try to connect using the following code:

<?
$linkID = mysql_connect("localhost", "https", "");

if ($linkID)
{ print "Sucessfully connected to MySQL server"; }
else
{ print "Error connecting to MySQL server"; }
?>

it will never connect just saying "Warning: Can't connect to MySQL server on '...' (10061)...". What do I need to do to get this working. Thanks in advance for your help!
 
Top