Forums

mysql 4.0 (5 posts)

  1. 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?

  2. Otto
    Tech Ninja
    Posted 5 years ago #

    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.

  3. 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

  4. Otto
    Tech Ninja
    Posted 5 years ago #

    No. It works fine with mySQL 4.1.

  5. jonlandrum
    Member
    Posted 5 years ago #

    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');
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic