MySQL Common Issues
WordPress needs a working database connection to load content and settings. A connection problem may display Error establishing a database connection, a hosting database error or a general server error.
Common causes
- The database service is unavailable or the hosting account has reached a resource limit.
- The database name, username, password or host in
wp-config.phpis incorrect. - The database user no longer has access to the required database.
- The server or hosting account has run out of storage.
- A table is damaged or an import or restore did not complete correctly.
What to check
- Save the exact message and note whether it affects the whole site or one action.
- Check the hosting status and account storage before changing WordPress.
- Compare the connection details in
wp-config.phpwith the database shown by the host. - Review recent migrations, password changes, imports or restores that may explain the timing.
- If the host reports table damage, create a backup before using its recommended recovery process.
Get help with the error
A database error can have several causes with the same visible message. If you need a developer to investigate, submit a Fix Request and include the error wording and when it began. Add hosting access to the Password Vault if requested.
Common questions
Frequently Asked Questions
Does a database connection error mean the database is lost?
Not necessarily. The database may still be intact while the service is unavailable or the connection details are incorrect.
Why does the error appear intermittently?
Temporary database availability, connection limits or server resource pressure can cause intermittent failures. Hosting logs and the timing of each occurrence can help identify the pattern.
Should I create a new empty database to fix the error?
Not unless the recovery or migration plan specifically requires one. Connecting WordPress to an empty database will make the site appear uninstalled.
Can BugShield investigate a MySQL error?
Yes. Submit a Fix Request with the exact message and timing, then provide any requested hosting access through the Password Vault.