Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to the database. mysql_error() #21

Closed
rhainne opened this issue Oct 8, 2014 · 3 comments
Closed

Unable to connect to the database. mysql_error() #21

rhainne opened this issue Oct 8, 2014 · 3 comments

Comments

@rhainne
Copy link

rhainne commented Oct 8, 2014

"Unable to connect to the database.
mysql_error()
Click here to setup the database. "

I upload the web and that is all what it says when i open it.
If i click "here", it takes me to this:

"Click on the 'Create / Reset Database' button below to create or reset your database. If you get an error make sure you have the correct user credentials in /config/config.inc.php

If the database already exists, it will be cleared and the data will be reset.

Backend Database: MySQL "
and if i hit on the 'Create / Reset Database' it tells: Could not connect to the database - please check the config file.

I dont know what to do, im so newbie. Please help

@ethicalhack3r
Copy link
Collaborator

Your last error points to the possible issue: please check the config file

Looks like you need to edit the /config/config.inc.php file and populate it with your database details.

@rhainne
Copy link
Author

rhainne commented Oct 8, 2014

but don't know how to config the file. Id just downloaded dvwa and uploaded it by default to localhost .
Excuse my ignorance :s

@ethicalhack3r
Copy link
Collaborator

I'd recommend learning a little bit about PHP/MySQL before learning about web application security.

If you want you can also use the DVWA ISO which is pre-configured - http://www.dvwa.co.uk/DVWA-1.0.7.iso (mount it in VirtualBox or similair)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants