# Fix “Error establishing a database connection”

> Database credentials, a crashed database, or corrupt tables repaired and the site back up. Hourly task, delivered by the Seahawk team.

Category: [Fixes & support](https://wpservices.com/fixes/) · Web page: https://wpservices.com/services/fix-database-connection-error/

This error means WordPress can’t reach its database, so every page is down. We check the credentials in wp-config.php, the database server, and the tables themselves, repair what is corrupt, and bring the site back. If the database is lost, we restore it from your latest good backup.

## What you get

- wp-config.php credentials checked
- Database server status checked with your host
- Corrupt tables repaired
- Site back online

## Estimate

Usually 1–2 hrs of developer time: about $129–$258 at $129 an hour. Booked as [developer hours](https://wpservices.com/services/wordpress-developer-hours.md); bigger blocks cost less per hour.

Order: https://app.wpservices.com/order?service=on-demand-wp-development-hours

## What we need from you

- Hosting control panel or SFTP access
- Database access (phpMyAdmin or similar)

## How the order runs

1. **Find the job.** Search for what’s wrong or what you need. Services show their price; tasks show the hours they usually take.
2. **Check out.** Choose an option, tell us which site, and pay through Stripe in the WP Services app. Hourly tasks are booked as developer hours.
3. **Watch it get done.** Your order gets a live tracker and a direct line to the team working on it, from start to finish.
