Destian
Member
Posted 5 years ago #
hi all,
I've been going around in circles with installing WordPress and keep getting the "Error establishing a database connection" message. I've beend trhough all the steps over and over again and everything seems to be working alright.
I read here on the forums that installing mysql 4.0 might help (I installed 4.1). But I can't seem to find it on the mysql.com website... So.... what to do?
keep getting the "Error establishing a database connection" message.
Most likely cause: You have incorrect parameters in your wp-config.php file. Double check them.
Destian
Member
Posted 5 years ago #
that's the thing, databasename, username and password are all correct.
It said somewhere here on the forum that it might be related to having mysql 4.1 instead of 4.0
No. It works fine with mySQL 4.1.
A lot of people fill in wp-config.php backwards. Here's how it should be:
<?php
define('DB_NAME', 'type-your-database-name-here');
define('DB_USER', 'type-your-user-name-here');
define('DB_PASSWORD', 'type-your-password-here');
define('DB_HOST', 'localhost');
$table_prefix = 'wp_';
define ('WPLANG', '');
define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');
?>