Skip to content
Poorva Cloud

WordPress "Error establishing a database connection"

WordPress cannot reach its database, usually because it is restarting, out of memory or the disk is full. Bring it back with a restart or by freeing space.

Updated 26 November 2026

Symptoms

  • Every page of the site shows Error establishing a database connection.
  • The WordPress admin area does not open either.

Cause

Each WordPress app on Poorva Cloud has two services: the WordPress web service and its own private MariaDB database service, in a separate container. The database can be reached only from that app, never from the internet. WordPress talks to it with a password the platform generated when the app was installed and gave to both sides.

This error means WordPress could not reach that database. Common causes:

  • the database service is starting or restarting, for example just after a restart of the app or the server;
  • the database service reached its memory limit and was stopped, or the server is short of memory;
  • the server's disk is full, so the database cannot write;
  • the database settings in wp-config.php were changed by hand or by a plugin and no longer match.

How to fix

  1. Wait one or two minutes after any restart, then reload. The database needs a little time to start.
  2. Open the app's Logs tab. Search for database, db, mysql or mariadb to see whether WordPress reports a database error. The tab shows what WordPress and its web server print, not the database's own output; if the app could not be started, Problems with your apps on the same tab says so.
  3. Open the app and click Restart, then Yes, restart. Both services restart together; the database starts and is checked before WordPress is started. Wait a minute and reload the site.
  4. If the logs mention memory, see App runs out of memory. If they mention disk space, see Server disk is full.
  5. If someone edited the database lines in wp-config.php, put back the original values; they must stay as the platform set them. Do not put a database password into wp-config.php yourself.

When to raise a ticket

Use Raise a ticket on the Support page if the error stays after a restart and the disk is not full. Include the application name, the server name, when it started and anything that changed just before, such as a migration or a new plugin.

Never include the database password, other passwords, private keys or API keys.

Was this helpful?

Still need help?

24/7 support from our team. Sign in to the console to raise a ticket about this.

Raise a ticket