Problems with creation of database DVWA
database, html, mysql, php, security
Solution
I had the same issue with it.
To Fix it
You must go to DVWA Directory>>Config>> Open config.inc.php with your favorite text editor.
then for `$_DVWA[ 'db_password' ] = 'p@ssw0rd';` change the password to `''` and then it should be fixed.
Problem
I am trying to set up Damn Vulnerable Web App (DVWA) (www.dvwa.co.uk). I installed XAMPP according to these 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 see: Unable to connect to the database. ``` mysql_error() ``` I try to setup database, it shows "Could not connect to the database - please check the config file". The `/htdocs/dvwa/config/config.inc.php` file 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 did not work. How I can fix this issue?