Have a Question?

If you have any question you can ask below or enter what you are looking for!

How to Fix “Error Establishing a Database Connection” in WordPress

If you visit your WordPress site and see a blank white screen displaying “Error establishing a database connection”, don’t panic! This is one of the most common errors in WordPress, and it usually means WordPress has lost communication with the database where all your posts, pages, and settings are stored.

This article walks you through why this happens, quick checks you can do yourself, and how to contact us if server-side help is needed.

๐Ÿ” What Causes This Error?

WordPress requires four key pieces of information to connect to its database: the Database Name, Database Username, Database Password, and Database Host. If any of these don’t match, or if the server is under temporary stress, the connection fails.

Common culprits include:

  • Misconfigured credentials in your wp-config.php file (often after a migration or password update).
  • Database corruption or missing tables.
  • Reaching account disk space or database quota limits.
  • Temporary server-side maintenance or heavy traffic spikes.

๐Ÿ› ๏ธ Self-Service Diagnostic Steps

Before reaching out to support, here are three quick checks you can perform:

Step 1: Check Your Storage Quota

If your hosting account is 100% full, the database engine may stop responding.

  1. Log in to cPanel.
  2. Check the Disk Usage gauge on the right-hand sidebar.
  3. If your account is full, remove unnecessary backup files or temp files to free up space.

Step 2: Verify Your wp-config.php Credentials

If you recently updated a database password in cPanel, WordPress won’t know unless you update it in your configuration file too:

  1. In cPanel, open File Manager and go to public_html.
  2. Right-click the wp-config.php file and select Edit.
  3. Look for the following lines: define('DB_NAME', 'your_db_name'); define('DB_USER', 'your_db_user'); define('DB_PASSWORD', 'your_db_password'); define('DB_HOST', 'localhost');
  4. Cross-check these values with your actual database details under cPanel > Manage My Databases. Ensure the username is assigned to the database with All Privileges.

Step 3: Try Repairing the Database

If your database became corrupted during an update:

  1. In cPanel, go to Manage My Databases.
  2. Under Modify Databases, select your site’s database and click Check Database.
  3. If errors are reported, click Repair Database.

๐Ÿš€ When to Escalate to Support

If your credentials are correct, your disk space is fine, and the error persists, it may require server-side investigation by an engineer.

How to open a ticket for faster resolution: When submitting a support ticket at my.cloudabove.com, please include:

  1. Your Website URL (e.g., yourdomain.com).
  2. The Exact Error Message you are seeing.
  3. Diagnostic Steps Taken (e.g., “I verified wp-config credentials match cPanel”).

ยฉ 2026 Jolt, a Freethought Group company encompassing Jolt, Freethought Internet, and Freethought Services. Jolt is a trading name of Host Lincoln Limited (06111631) registered in England and Wales at Unit 5, Oak House, Witham Park, Waterside South, Lincoln, LN5 7FB. Freethoughtยฎ and the Freethought face are registered trademarks.
Visa MasterCard American Express PayPal Direct Debit Webmoney