I really don’t understand the 5-minute install thing. I’ve been trying to install WordPress on my site the whole night and yet I still couldn’t establish a database connection? I wonder what’s wrong.
Can anybody please help?
I read other forum stuff about this one and I really wonder what’s wrong. Am I missing something basic here? I’m not really good at this kind of codes. Please please help.. Thanks.
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?
THIS IS MY wp-config.php:
// ** MySQL settings ** //
define(‘DB_NAME’, ‘wordpressblog’); // The name of the database
define(‘DB_USER’, ‘xxxxxxxxxxxxx’); // Your MySQL username
define(‘DB_PASSWORD’, ‘xxxxxxxxx’); // …and password
define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
// Change each KEY to a different unique phrase. You won’t have to remember the phrases later,
// so make them long and complicated. You can visit http://api.wordpress.org/secret-key/1.1/
// to get keys generated for you, or just make something up. Each key should have a different phrase.
define(‘AUTH_KEY’, ‘put your unique phrase here’); // Change this to a unique phrase.
define(‘SECURE_AUTH_KEY’, ‘put your unique phrase here’); // Change this to a unique phrase.
define(‘LOGGED_IN_KEY’, ‘put your unique phrase here’); // Change this to a unique phrase.
// You can have multiple installations in one database if you give each a unique prefix
$table_prefix = ‘wp_’; // Only numbers, letters, and underscores please!
// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-content/languages.
// For example, install de.mo to wp-content/languages and set WPLANG to ‘de’
// to enable German language support.
define (‘WPLANG’, ”);
/* That’s all, stop editing! Happy blogging. */
if ( !defined(‘ABSPATH’) )
define(‘ABSPATH’, dirname(__FILE__) . ‘/’);
require_once(ABSPATH . ‘wp-settings.php’);
Please help. Thanks!
- The topic ‘Error establishing a database connection — I’M LOST.’ is closed to new replies.