• Hi

    I have installed WP many times with no problems using the 5 min method.
    for some reason this time my install does not recognise (says the info could be wrong) the database I have made.
    I make a new database just be sure it was created correctly and then check to be sure it is running( it is)

    so I create the wp-config.php locally and upload it and get this message

    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?

    Please Help!!

    Thanks
    Mark

Viewing 2 replies - 1 through 2 (of 2 total)
  • I don’t know what web host you are using, but the database address might not be ‘localhost’. Many hosts run separate servers for their databases.

    – 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, if the hosting package is set to Windows and not Linux, 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error establishing a database connection’ is closed to new replies.