WordPress.org

Ready to get started?Download WordPress

Forums

Restoring backup (3 posts)

  1. Will900
    Member
    Posted 7 years ago #

    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

  2. ekusteve
    Member
    Posted 7 years ago #

    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 steve@kentuckyclassroom.com with your login info and I'll look it for you.

    Steve

  3. Mkadmin
    Member
    Posted 7 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic