“Error establishing a database connection” means WordPress cannot reach its MySQL database. It is one of the most common WordPress errors — and usually easy to fix.
Step 1: Check Your Database Credentials
- Open the Plesk File Manager and edit
httpdocs/wp-config.php. - Find the lines
DB_NAME,DB_USER,DB_PASSWORD, andDB_HOST. - Compare them against the real database credentials in Plesk under Databases — click your database to see its users.
- If the password was changed recently, update
DB_PASSWORDin wp-config.php to match.
Step 2: Check That the Database Exists
- In Plesk go to Databases.
- Confirm the database listed in
DB_NAMEactually exists and has a user assigned with the right password.
Step 3: Repair Corrupted Tables (if needed)
If credentials are correct but the error persists, a table may be corrupted:
- In Plesk open Databases → phpMyAdmin for your database.
- Select all tables, choose Repair table from the dropdown.
Other Causes
- Server overload: if the whole server was rebooted or MySQL crashed, wait a few minutes and retry — or open a ticket and we will check the database service.
- Wrong DB_HOST: it is almost always
localhoston our servers.

Entry Level
Dedicated Server
Email Service
Design Services
Marketing Services
Domains
Billing
Support
Tools
Company
Support
Tools