Unanswered: Access Denied - connecting to mysql using PHPmyadmin
Not sure if this is the right place to post this, but yea.
The error I got is
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /Applications/XAMPP/xamppfiles/htdocs/helloworld.php on line 2
Access denied for user 'root'@'localhost' (using password: YES)
My PHP script is
mysql_connect("localhost", "root", "password") or die(mysql_error());
echo "Connected to MySQL<br />";
mysql_select_db("helloworlddatabase") or die(mysql_error());
echo "Connected to Database";
Attached is what i have on PHPMyadmin > user privileges tab.
I have created another user "thian" which also has global privilege to this helloworlddatabase, and the same error pops up.