I am trying to configure the Damn Vulnerable Web App (DVWA) (www.dvwa.co.uk).
I installed XAMPP according to this instruction: http://www.apachefriends.org/en/xampp-windows.html I installed DVWA according to these instructions: http://www.youtube.com/watch?v=GzIj07jt8rM
I went to localhost / dvwa and saw: Unable to connect to the database.
mysql_error()
I try to configure the database, it shows "Unable to connect to the database - check the configuration file."
The file /htdocs/dvwa/config/config.inc.php shows:
$_DVWA[ 'db_server' ] = 'localhost'; $_DVWA[ 'db_database' ] = 'dvwa'; $_DVWA[ 'db_user' ] = 'root'; $_DVWA[ 'db_password' ] = ' p@ssw0rd ';
I tried replacing localhost with 127.0.0.1 , but it still didn't work.
How can I fix this problem?
source share