Support » Installing WordPress » database connection problem

  • Have installed wordpressat least 3 times before. Doing install for friend tonight. Have reset wp-admin/config.php with correct details.
    Getting error message when running install.php

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

    I can connect to database using login details via the control panel for my host ( but cannot get the install to work.
    Any help appreciated

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p


    – Error connecting to your database is common, but it isn’t necessarily a problem with wordpress itself. -First, try contacting the hosting provider if the database server is online / if they have any other problem at their end, or they made any changes to your account, or if there are any limitations/restrictions, etc .

    – double check your wp-config.php file settings for the database name, database username and database password. This is where most errors occur.

    -Then check that you don’t need to change the database host from “localhost” to something else. You can get that info from your hosting provider.

    -Check you have actually created a database with the same database name as is in your wp-config.php file.

    -Last, but not least, if all that information is correct your database probably has a problem with it, and you may need to contact your hosting provider.

    There are also many threads on this topic on these forums:

    It sounds like you have the database hostname incorrect. Contact your host to make sure you are using the correct database hostname. If they verify it is correct, request further assistance from your host and they should be able to point you in the right direction.

    Contact your host to check for your database credentials.

    Hi all and thanks for your responses.
    I now that the database is set up and accessable as I can access and view it from the control panel for the site. I have also set up a second database with different settings to test and I can connect to it via the control panel also.
    The config.php file is set correctly and has been checked multiple times.
    I guess the next step is to contact the host. I’ll get back here with progress (or lack of 🙁 )

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘database connection problem’ is closed to new replies.