• I entered everything into the config file and I keep switching them around but I still get this error:
    “Error establishing a database connection! This probably means that the connection information in youn wp-config.php file is incorrect. Double check it and try again.
    Are you sure you have the correct user/password?
    Are you sure that you have typed the correct hostname?
    Are you sure that the database server is running?”
    Here’s my config.php thing:
    <?php
    /** WordPress’s config file **/
    /** http://wordpress.org/ **/
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘wp’); // The name of the database
    define(‘DB_USER’, ‘Kelly’); // Your MySQL username
    define(‘DB_PASSWORD’, ‘*******’); // …and password
    define(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
    // Change the prefix if you want to have multiple blogs in a single database.
    $table_prefix = ‘wp_’; // example: ‘wp_’ or ‘b2’ or ‘mylogin_’
    /* Stop editing */
    $server = DB_HOST;
    $loginsql = DB_USER;
    $passsql = DB_PASSWORD;
    $base = DB_NAME;
    define(‘ABSPATH’, dirname(__FILE__).’/’);
    // Get everything else
    require_once(ABSPATH.’wp-settings.php’);
    ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • You might want to remove the password from the above post.
    I guess somebody will be able to help you out with the problem. I know it can be very frustrating. There are number of things that could possibly go wrong.

    I assume you are running this locally, or on a hosting provider that co-hosts you MySQL installation with the apache/webserver? If not, you need to change DB_HOST to the ip address of your MySQL server. ‘Most’ hosts have the DBs on separate server(s) from web (and email, etc.).
    -d
    http://www.chait.net

    Thread Starter Kelly

    (@kelly)

    Yeah. I’m hosted. So what should the config.php look like?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Another annoying Config Problem…’ is closed to new replies.