Could not connect to the database. Please check the config file. #119

Open
BubbleZZ opened this Issue Dec 13, 2016 · 2 comments

Projects

None yet

3 participants

@BubbleZZ
BubbleZZ commented Dec 13, 2016 edited

Setup Check

Operating system: *nix
Backend database: MySQL
PHP version: 5.6.29-1+deb.sury.org~xenial+1

Web Server SERVER_NAME: 192.168.152.131

PHP function display_errors: Disabled
PHP function safe_mode: Disabled
PHP function allow_url_include: Enabled
PHP function allow_url_fopen: Enabled
PHP function magic_quotes_gpc: Disabled
PHP module php-gd: Installed

reCAPTCHA key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Writable folder /var/www/html/dvwa/hackable/uploads/: Yes)
Writable file /var/www/html/dvwa/external/phpids/0.6/lib/IDS/tmp/phpids_log.txt: Yes

TUT FOLLOWED
https://www.youtube.com/watch?v=5BG6iq_AUvM
NOTE-Jack does not know how to fix this because i went to the comments and people were having the same issue and he didn't know how to help/ or didn't reply at all.

Solutions tried (Nothing has worked
Set 'db_password' ] '';
Changed 'db_server' ] = 'localhost' ; as well as tried 127.0.0.1
Changing port to 3306
adding port to 127.0.0.1 like 127.0.0.1;3306

Please help been trying multiple things nothing is working ;(

@BubbleZZ BubbleZZ changed the title from Could not connect to the database. to Could not connect to the database. Please check the config file. Dec 13, 2016
@mike-bailey

Please provide the latest entries in error.log and access.log from whatever web server you're using (it looks like the tutorial is Linux so if it's apache2, it's under /var/log/apache2/error.log & access.log if I recall) and provide it here.

@digininja
Contributor

Also send the results of logging in to the database using the username and password you are putting into the config file, i.e. if you are using root and no password in the config file, use the mysql command line client to connect using those creds to prove that they work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment