How annoying, I installed mySQL, I downloaded the newsest version last night.
I wrote a script in PHP to see if it would connect to my database and it worked. I then Stoped the mySQL Service and started it again and it stoped working. I get this message now,
Warning: Access denied for user: 'root@localhost' (Using password: NO) in c:\program files\apache server\apache\htdocs\test.php on line 2
Warning: MySQL Connection Failed: Access denied for user: 'root@localhost' (Using password: NO) in c:\program files\apache server\apache\htdocs\test.php on line 2
unable to connect
and this is the script i used
<?php
$connect = mysql_connect ("localhost", "root","")
or die ("unable to connect");
print "connected"
?>
Can someone please tell me whats wrong and how i can fix it please.
Thanks alot.