"Error establishing a database connection" at 3 a.m.
The site shows a database connection error. Nothing was changed. The host's status page says all fine.
What the diagnosis found
The server's disk was full. A backup plugin had been writing a complete copy of the site every night for a year into a folder nothing ever emptied, and that night the database could no longer write its log. The database itself was intact.
What was done
- Old backup copies removed (38 GB), the database service restarted, the site back within a minute
- A fresh backup of the site taken, this time stored off the server
- The backup plugin set to keep three copies and to store them off the server
- Disk usage checked: 18% after the clean-up
- Received."Database connection error, nothing changed."
- Diagnosed and quoted.Disk full from nightly backups. Quick fix.
- Approved.Hosting login given after the owner woke up.
- Fixed.38 GB cleared, database back, backup plugin reconfigured.
- Confirmed. Paid."Open before the first patient."
What to watch for
From the report the owner received.
- A backup kept on the same server is not a backup; this one was also what took the site down
- Hosts rarely warn about a full disk; monthly care checks it
On the bench this is
Database connection error: The site cannot reach its database: wrong credentials after a move, a full disk, a crashed MySQL. Back in minutes once we are in.
How this repair runs → WordPress repairs →
Same problem? Put it on the bench →More from the wall
White screen after a theme update
Seen: Updated the theme from the dashboard, pressed refresh, and everything is white.
Cause: The child theme used a PHP function that was removed in PHP 8.2, and the host had moved the site to 8.2 the week before.
Quick fix · 14 minutes on the bench · 8 November 2026Google's red "deceptive site" warning
Seen: Visitors get a full red page saying the site is deceptive.
Cause: The site had been hacked through a contact-form plugin that had not been updated since 2023.
Rescue · cleared in 2 days · 27 October 2026Certificate expired while the auto-renewal said it had worked
Seen: Browsers say the connection is not private.
Cause: The renewal had produced a new certificate, but the web server was never reloaded, so it kept serving the old one until…
Quick fix · 11 minutes on the bench · 14 November 2026