Kali Linux(2020.2)安装DVMA
#cd DVWA/config/
#mv
//重命名
#vi
$_DVWA = array();
$_DVWA[ 'db_server' ] = '127.0.0.1';
$_DVWA[ 'db_database' ] = 'dvwa';
$_DVWA[ 'db_user' ]
= 'dvwa'; $_DVWA[ 'db_password' ] = '123456';
//修改配置文件
#service apache2 start
#service mysql start
//开启服务
#mysql
MariaDB [(none)]> create user 'dvwa'@'localhost' identified by '123456';
MariaDB [(none)]> grant all privileges on *.* to 'dvwa'@'localhost';
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> exit;
//进入mysql,创建新用户,密码;给于新用户所有特权;刷新;退出