Having problem to connect to SQL
Posted: 04. June 2009 06:13
Hi,
I'm having a problem to connect to the SQL. The error message is..
Here is config.php file... looks like root without password.. (i'm new sql user... just play around with it today)
Any idea what should I do. I've tried to setup password for it, but failed.
Any advice in this matter would be most appreciated. Thanks guys
I'm having a problem to connect to the SQL. The error message is..
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in C:\xampplite\htdocs\dvwa\includes\config.php on line 11
Access denied for user ''@'localhost' to database 'dvwa'
Here is config.php file... looks like root without password.. (i'm new sql user... just play around with it today)
<?
$user="root";
$password="";
#
# Do not edit below this line.
#
$database="dvwa";
mysql_connect(localhost,$user,$password);
?>
Any idea what should I do. I've tried to setup password for it, but failed.
C:\xampplite\mysql\bin>mysql.exe -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Any advice in this matter would be most appreciated. Thanks guys