Cannot Connect to database
-
I can see this had been covered before but I haqve spent the last six hours trying to resolve this and cannot get anywhere:
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.Are you sure you have the correct username and password?
Are you sure that you have typed the correct hostname?
Are you sure that the database server is running?My settings are:
define(‘DB_NAME’, ‘mynews’); // The name of the database
define(‘DB_USER’, ‘mynews’); // Your MySQL username
define(‘DB_PASSWORD’, ‘Kup9xagu’); // …and password
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
define(‘DB_CHARSET’, ‘utf8’);
define(‘DB_COLLATE’, ”);If I connect to the MYSQL database using mysql from the command line with these settings, all is well. This indicates that the username, password and host are all correct. Why then, will WordPress not connect?
Any help most appreciated.
- The topic ‘Cannot Connect to database’ is closed to new replies.