Troubleshooting / symptôme

WordPress no longer connects to the database

WordPress displays "Error when connecting to the database".

⌚ About 3 min read
View my favorites
Real-world problem · V2

Quick troubleshooting view

What you are seeing

WordPress displays "Error when connecting to the database".

Likely causes
  1. Invalid MySQL identifiers
  2. MySQL server unavailable
  3. Saturated or corrupt base
First checks
  1. Check wp-config.php
  2. Check basic service
  3. Control the space and quotas
Recommended actions
  1. Fix connection settings
  2. Restoring MySQL service
  3. Reveal a consistent basis if corruption confirmed
Start Symptom → Cause →
WordPressAdvanced.

WordPress displays "Error when connecting to the database".

Important: relevez toujours le message d’erreur exact et l’heure du problème avant de modifier la configuration. Les actions proposées doivent être adaptées à votre environnement.

Causes probables

  • Invalid MySQL identifiers
  • MySQL server unavailable
  • Saturated or corrupt base
  • Incorrect base host
  • Resource limit achieved

Diagnostic étape par étape

  1. 1

    Check wp-config.php

    Control DB_NAME, DZ_USER, DZ_HOST without exposing secrets.

  2. 2

    Check basic service

    Check the host's status.

  3. 3

    Control the space and quotas

    Saturation can prevent MySQL from working.

  4. 4

    See the logs

    Identify the correct connection errors.

Solutions possibles

  • Fix connection settings
  • Restoring MySQL service
  • Reveal a consistent basis if corruption confirmed
Quand escalader ?

Ecstasy immediately to the host if the MySQL server is unavailable or if more than one site is affected.

♡ 0