michael_kent123 Posted November 21, 2012 Share Posted November 21, 2012 I am trying to set up Damn Vulnerable Web App (DVWA) (www.dvwa.co.uk). I install XAMPP according to these instructions successfully: http://www.apachefriends.org/en/xampp-linux.html I check that MSSQL is running under XAMPP: 21/tcp open ftp ProFTPD 1.3.4a 80/tcp open http Apache httpd 2.4.3 ((Unix) OpenSSL/1.0.1c PHP/5.4.7) 443/tcp open ssl/http Apache httpd 2.4.3 ((Unix) OpenSSL/1.0.1c PHP/5.4.7) 3306/tcp open mysql MySQL (unauthorized) I install DVWA according to these instructions: https://code.google.com/p/dvwa/wiki/README I go to localhost/dvwa and see: Unable to connect to the database. mysql_error() The /opt/lampp/htdocs/dvwa/config/config.inc.php file shows: $_DVWA[ 'db_server' ] = 'localhost'; $_DVWA[ 'db_database' ] = 'dvwa'; $_DVWA[ 'db_user' ] = 'root'; $_DVWA[ 'db_password' ] = ''; I am localhost (have also replaced this with 127.0.0.1 but it still did not work) and login as root. Yet I still get the above MYSQL error along with: Could not connect to the database - please check the config file. Does anyone know how I can fix this issue, thanks Quote Link to comment Share on other sites More sharing options...
digininja Posted November 21, 2012 Share Posted November 21, 2012 Is the database running? What happens if you try to connect to it from the command line with mysql -u root -p -D dvwa Have you tried using the live ISO instead? Much easier to get working I reckon. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.