Project scenario:
Build a DVWA shooting range environment
Problem Description
DVWA encountered a database error
Could not connect to the database service. Please check the config file. Database Error #1045: Access denied for user 'dvwa'@'localhost' (using password: YES).
Cause Analysis:
- $_DVWA[ 'db_database' ] parameter is changed to the DVWA database name (confirm whether the database name is correct in Xiaopi)
- $_DVWA[ 'db_password' ] The parameter is changed to the MYSQL database password, generally the default is root
- $_DVWA['db_user'] is changed to MYSQL database name root
solution:
Change both user and password to database user and password
Create the database again and log in successfully