Jump to content

Problems with Damn Vulnerable Web App


michael_kent123

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...