Now, unzip it to C:\xampp\htdocs\ DVWA File as screenshot given below
Now Open config.inc.php File located under DVWA >> Config >> config.inc.php as screenshot given below
Now open config.inc.php as noteped and then mdify its configuration file as screenshot given below
here
$_DVWA = array();
$_DVWA[ 'db_server' ] = '127.0.0.1' is for mysql database ip address
$_DVWA[ 'db_database' ] = 'dvwa' is for mysql database table name
$_DVWA[ 'db_user' ] = 'root'; is for mysql user name
$_DVWA[ 'db_password' ] = 'p@ssw0rd'; is for mysql password
You can also modify your mysql password with this command : -
>> C:\xampp\mysql\bin\mysqladmin -u root password 123456
As xampp default password is (no password)
so change your configuration from