问题1:window服务器上,遇到了
The MySQL server is running with the --secure-file-priv option so it cannot execute this statement错误。
原因:my.ini配置文件没有secure-file-priv=,或者是secure-file-priv=NULL,有可能是secure-file-priv=某一文件路径。
解决:配置文件添加:secure-file-priv=""
问题二:linux上遇到了
Access denied for user ‘root’@‘localhost’ (using password: YES)
user没有权限,密码是对的。
解决:/etc/mysql/my.cnf 添加:skip-grant-tables
问题三:linux上遇到了
Can’t create/write to file xxx (Errcode: 13)
当你把一句话木马写到服务器目录下,遇到了这个错误。
原因:这个目录的权限不够。
解决:提升权限:chown mysql:mysql /var/www/dvwa/vulnerabilities
(去这里提升的是/var/www/dvwa/vulnerabilities目录的权限)