WordPress.org

Ready to get started?Download WordPress

Forums

Error establishing a database connection (20 posts)

  1. kons
    Member
    Posted 8 years ago #

    Hi Folks,
    same old Problem again. My Hoster meets all the requirements. My wp-config.php looks like:
    <?php
    define('DB_NAME', 'db78390');
    define('DB_USER', 'db78390');
    define('DB_PASSWORD', 'myPassword);
    define('DB_HOST', 'localhost');

    $table_prefix = 'wp_';

    define ('WPLANG', '');

    define('ABSPATH', dirname(__FILE__).'/');

    require_once(ABSPATH.'wp-settings.php');
    ?>
    Any idea what else i could check?
    Thanks
    Kons

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Who is your host ?

  3. roterhund
    Member
    Posted 8 years ago #

    I would check if "localhost" is correct. Just a half-educated guess, I'm afraid, but it just might work.

  4. kons
    Member
    Posted 8 years ago #

    the hoster is domaingo in Germany
    localhost or mysql.domaingo.de? tried both versions but didn't work.
    even tried user and name in different versions.

  5. Mark (podz)
    Support Maven
    Posted 8 years ago #

    What precisely is the error message you get (there are two).

  6. corefx
    Member
    Posted 8 years ago #

    sometimes when you make a database.. it adds a prefix to the start of the db name. So if you made a db called

    db73890

    it might be prefixed with

    sitename_db73890

    double check this in your cpanel

  7. kons
    Member
    Posted 8 years ago #

    it this:
    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?

  8. Mark (podz)
    Support Maven
    Posted 8 years ago #

    i'd go with what corefx suggests above.

  9. kons
    Member
    Posted 8 years ago #

    I just checked the Datebase server. But it seems that its running pretty well.

  10. kons
    Member
    Posted 8 years ago #

    cpanel? is this within the sqladmin?

  11. corefx
    Member
    Posted 8 years ago #

    control panel, I'm not sure if your host has one or not but it's worth a shot to try it like this. Take your website name and add it as a prefix to the database... my site is corefx.net so i would put

    corefx_db73890

    that's the only thing that I could think of

  12. kons
    Member
    Posted 8 years ago #

    Just tried but it didn't work. Thanks anyway.

  13. Sounds like it's time to contact your host.

  14. roterhund
    Member
    Posted 8 years ago #

    define('DB_PASSWORD', 'myPassword);

    There's a ' missing behind the password.

  15. kons
    Member
    Posted 8 years ago #

    Ne ist drinne, ist beim rauskopieren verloren gegangen. Danke

  16. Mark (podz)
    Support Maven
    Posted 8 years ago #

    Pardon ?

  17. kons
    Member
    Posted 8 years ago #

    :)
    the ' was just gone while ****ing my password.

  18. Mark (podz)
    Support Maven
    Posted 8 years ago #

    aaaaaaahhhhhhhhhhhh :)

  19. roterhund
    Member
    Posted 8 years ago #

    Schade, wär' so schön einfach gewesen ;-)

  20. cgn
    Member
    Posted 8 years ago #

    Hello,
    I received the same error when I tried the wp-admin/install.php on my local host. Should I upload the MySQL software also on my local host provider? My database name, wordpress username, password and local host checked fine with the MySQL on my Windows OS. My local host is bravenet.com
    Dennis

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags