Title: Error establishing database connection
Last modified: February 7, 2024

---

# Error establishing database connection

 *  [tdsbc](https://wordpress.org/support/users/tdsbc/)
 * (@tdsbc)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/error-establishing-database-connection-144/)
 * Hi,
 * I’m running WordPress on Docker. This has suddenly occurred.
 * I’ve tried `define('WP_ALLOW_REPAIR', true);` which didn’t sort the problem.
 * Logs:
 * Bad magic header in tc log
 * 2024-02-07 22:39:57 0 [ERROR] Crash recovery failed. Either correct the problem(
   if it’s, for example, out of memory error) and restart, or delete tc log and 
   start server with –tc-heuristic-recover={commit|rollback}
 * I have no idea how to go from here.
 * Help please!
 * TIA
 * John

The topic ‘Error establishing database connection’ is closed to new replies.

## Tags

 * [database](https://wordpress.org/support/topic-tag/database/)
 * [MariaDB](https://wordpress.org/support/topic-tag/mariadb/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 2 participants
 * Last reply from: [tdsbc](https://wordpress.org/support/users/tdsbc/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/error-establishing-database-connection-144/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
