Support » Fixing WordPress » Error establishing a database connection

  • Hello, this is my first post here.

    I recently restored my website from a full backup using the Updraft plus plugin, which in the past has worked flawlessly for me.

    Today, immediately after the restoration was complete I received the ‘Error establishing a database connection’ message. I followed the instructions editing the wp-config.php file to allow editing by adding

    define(‘WP_ALLOW_REPAIR’, true);

    I then repaired the database, however the error did not go away. I have searched online and have attempted another suggested resolution using the Myphpadmin to run a SQL query. It was one of the more well documented means to fix this problem which some have had success with.

    I’m going to check with hostgator tech support to see if they’ll be any help. My other two websites are still up and running, and if they’re on the same server (which I assume they are if under one hosting plan) I don’t believe it will be a server problem.

    Any ideas? Thank you in advance.

Viewing 1 replies (of 1 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator 🚀

    Check your wp-config.php file. If the database connection details are correct, then your database server is offline and you need to contact your hosting provider.

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