WordPress.org

Ready to get started?Download WordPress

Forums

Error establishing a database connection... (5 posts)

  1. FureDragon
    Member
    Posted 9 years ago #

    hi,

    I've got a common problem, it just says:

    [blockquote]
    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.

    * 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?

    If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
    [/blockquote]

    I checked everything in the wp-config.php file.
    It goes like this:

    [blockquote]
    ...define('DB_NAME', 'Database')...
    ...define('DB_USER', 'Furedragon')...
    ...define('DB_PASSWORD', 'mypassword')...
    ...define('DB_HOST', 'localhost')...
    [/blockquote]

    I uploaded everything and still keep getting this error..My question is if I have to make a database named "Database" like reffered to in my wp-config.php file, and what kind of database, just a simple empty one? And if not, what the sollution is for my problem... Thx allot :->

    yours sincerly, FureDragon

  2. eridan
    Member
    Posted 9 years ago #

    if you set DB_NAME to Database, that´s the database wordpress will look for. In other words, create a database named Database..

  3. moshu
    Member
    Posted 9 years ago #

  4. FureDragon
    Member
    Posted 9 years ago #

    now it says:

    blockquote
    Can’t select database

    We were able to connect to the database server (which means your username and password is okay) but not able to select the Database database.

    * Are you sure it exists?
    * On some systems the name of your database is prefixed with your username, so it would be like username_wordpress. Could that be the problem?

    If you continue to have connection problems you should contact your host. If all else fails you may find help at the WordPress Support Forums.
    /blockquote

    So this means I have to create an empty database, named 'Database' like you said, does the database have specific things I must ad..Or will wordpress handle that for me?

  5. ColdForged
    Member
    Posted 9 years ago #

    Just an empty database and a user that has all permissions (create/alter tables, etc).

Topic Closed

This topic has been closed to new replies.

About this Topic