Skip to content

How to Fix WordPress Database Connection Errors

WordPress · Self-help guide

The message Error establishing a database connection means WordPress cannot connect to its database. This may happen if database credentials are wrong, the database server is unavailable, or the database user has lost permissions. Open File Manager and check wp-config.php. Confirm the database name, username, password, and host match the details in your hosting panel. Do not post these values publicly or send passwords in tickets. If the details look correct, check whether the database exists and whether the user has permissions assigned. The issue can also occur after migrations if old database details remain. If you are unsure, contact support with the domain name and the time the error started.

Did this solve it?If not, Penny and the support team are ready to help.Start live chatOpen a ticket