Title: Error establishing a database connection error
Last modified: August 19, 2016

---

# Error establishing a database connection error

 *  [mn3mon1c](https://wordpress.org/support/users/mn3mon1c/)
 * (@mn3mon1c)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-error-1/)
 * After getting my wordpress website up and running, I was changing the website
   description. When I clicked save, it gave me this error “Error establishing a
   database connection”. I tried going to the admin page and it asked me if I wanted
   to repair the db. I repaired it through wordpress and to no avail. It said the
   tables were “ok” but still didn’t work. So I tried repairing the tables through
   phpmyadmin and still no good. I checked the config file with the database and
   it is the same, which is what I assumed since the install was fine in the first
   place. Also I contacted my host and they said they tested the database and that
   it seems fine. Any idea what I can do to try to restore it? Am I out of luck?
   🙁
 * The link to the site is [http://wfaworldwide.com/justNeph/](http://wfaworldwide.com/justNeph/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-error-1/#post-1391176)
 * Do you have a recent database backup?
 *  Thread Starter [mn3mon1c](https://wordpress.org/support/users/mn3mon1c/)
 * (@mn3mon1c)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-error-1/#post-1391214)
 * No, I had set up the website maybe 2 days ago so I didn’t think to back it up,
   but I did make some pages and install plugins and what not
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-error-1/#post-1391249)
 * Double check your wp-config.php file settings for the database and host names.
 *  Thread Starter [mn3mon1c](https://wordpress.org/support/users/mn3mon1c/)
 * (@mn3mon1c)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-error-1/#post-1391326)
 * I just double checked it and it’s the same values. Is there anything else I can
   do? I can still make a backup through phpmyadmin. Could I save the query file
   from there and somehow just make a new db and place the tables in there?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-error-1/#post-1391391)
 * First try:
    – deactivating **all** plugins to see if this resolves the problem.
   If this works, re-activate the plugins one by one until you find the problematic
   plugin(s).
 * – switching to the default theme to rule out any theme-related problems.
 * – [resetting the plugins folder](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)
   by FTP or phpMyAdmin. Sometimes, an apparently inactive plugin can still cause
   problems.

Viewing 5 replies - 1 through 5 (of 5 total)

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

## Tags

 * [Database Error](https://wordpress.org/support/topic-tag/database-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 3 months ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-error-1/#post-1391391)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
