Dvwa遇到 Could not connect to the database service. Please check the config file.解决办法

环境:win10+php7.3.4

问题:在使用DWVA时,create database连接数据库时候,出现Could not connect to the database service. Please check the config file.无法进入login界面    

解决办法:修改phpstudy_pro\WWW\DVWA\config目录文件里的$_DVWA[ 'db_password' ] = 'p@ssw0rd'中的密码更替成root.

Dvwa遇到 Could not connect to the database service. Please check the config file.解决办法_第1张图片

 

然后重新在DVWA创建数据库即可,创建成功出现以下页面即创建成功

 Dvwa遇到 Could not connect to the database service. Please check the config file.解决办法_第2张图片

 

你可能感兴趣的:(数据库,php)