Δημοσιεύτηκε: 27 Νοέμ 2013, 00:53
από kamar
Κάνοντας μια μικρή έρευνα:
Για το σφάλμα "Could not connect to the database - please check the config file."
Κώδικας: Επιλογή όλων
if( !@mysql_connect( $_DVWA[ 'db_server' ], $_DVWA[ 'db_user' ], $_DVWA[ 'db_password' ] ) ) {
dvwaMessagePush( "Could not connect to the database - please check the config file." );

Που σημαίνει ότι πρέπει να διαμορφώσεις το config αρχείο του DVWA, γιατί δεν μπορεί να συνδεθεί η εφαρμογή.
Ένας οδηγός που ίσως σε βοηθήσει είναι εδώ.

Για το σφάλμα «ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) ».

http://askubuntu.com/questions/291054/cant-connect-to-local-mysql-server-through-socket-var-run-mysqld-mysqld-sock
http://askubuntu.com/questions/92326/cant-connect-to-local-mysql-server-through-socket-var-run-mysqld-mysqld-sock
http://dev.mysql.com/doc/refman/5.5/en/error-messages-client.html#error_cr_connection_error
Έλεγξε το αρχείο my.cnf.