Support » Fixing WordPress » Restoring backup

  • Hi, I made a back-up for my WordPress 2.04 yesterday, and then the “error establishing a database connection” occured.

    The problem is I can’t fix it anymore! I tried to “recover” the database from my cPanel, but it didn’t work.. Any suggestions? Thanks a lot

Viewing 2 replies - 1 through 2 (of 2 total)
  • Could be almost anything…I am willing to log into your Cpanel and look at for you. Of course, you would need to trust me with your login info. If you want me to do this, contact me at with your login info and I’ll look it for you.


    Let’s try and answer your queries one by one:

    1. “error establishing a database connection”- Open the wp-config.php file in the root of WordPress installation and check that the DB_NAME’, DB_USER, DB_PASSWORD, DB_HOST details are as per tyhe database you created. But I think the error is because you specified your DB_HOST as “localhost” whereas your host requires you to enter a specific IP address. In your webserver config, go to the page where the various databases are listed and look under a column called “Database Host” and enter the value given there in place of localhost. Normally, only 1% of webhosts (including the one I use) prevent use of localhost, but then again, it isn’t something one can assume. If you can’t locate the proper host name, contact the webserver support team.

    2. If you are able to resolve this, your second problem should get resolved on its own.

    Do post back how it went?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Restoring backup’ is closed to new replies.