Quick Diagnosis
Separate credential problems from database-service problems before changing configuration.
Problem
Work through the WordPress database connection error by checking credentials, database availability, host configuration, and recent migrations without editing data blindly.
Problem
For: Administrators seeing the WordPress database connection error on public or admin pages.
Workflow
Separate credential problems from database-service problems before changing configuration.
Do not run repair SQL or change passwords until you know which connection detail failed.
Diagnosis
Contact hosting support when credentials are correct but the database host rejects connections or the service is down.
References