I installed Apache on this PC months ago to test PHP files, but i never really used it, since i did most of my work at shcool.
But now i'm trying to test stuff on my computer. If i put my PHP files in my htdocs, i can navigate to them using my browser, but once i try to access a database, i get an error.
The code thats giving me the error is:
$dbconn=mysql_connect("localhost", "root", "abc") or die (mysql_error());
The error its giving me is:
Access denied for user 'root'@'localhost' (using password: YES)
the thing is i installed Apache so long ago, i don't remeber if thats the username and password i used. Where can i go to check that?
But now i'm trying to test stuff on my computer. If i put my PHP files in my htdocs, i can navigate to them using my browser, but once i try to access a database, i get an error.
The code thats giving me the error is:
$dbconn=mysql_connect("localhost", "root", "abc") or die (mysql_error());
The error its giving me is:
Access denied for user 'root'@'localhost' (using password: YES)
the thing is i installed Apache so long ago, i don't remeber if thats the username and password i used. Where can i go to check that?