Ready to get started?Download WordPress


Error establishing a database connection (5 posts)

  1. girlse7en
    Posted 8 years ago #

    This is the error message I am receiving when i try to view my site. Is it because i just the server takes 1 to 2 days to become active?
    Can someone send me an example of how the wp-config.php text should look.


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

  2. chaaban
    Posted 8 years ago #

    Check this == > WP-CONFIG

  3. MichaelH
    Posted 8 years ago #

    If your wp-config.php is fine, and sometimes you have no problem (i.e. WordPress displays just fine) then probably an issue with your host's database server.

  4. nplnita
    Posted 8 years ago #

    I also had the same problem initially. Then I changed the localhost to the IP address, now it is loading a blank page for install.php. I am not sure what needs to be done on host's database server. We have another company who hosts our website.

  5. chaaban
    Posted 8 years ago #

    usualy it's 99% "localhost" that should be placed but on some server like godaddy it's another combination ...


    ask your company they should help you .

Topic Closed

This topic has been closed to new replies.

About this Topic