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

---

# Error establishing a database connection

 *  [tobiesmom](https://wordpress.org/support/users/tobiesmom/)
 * (@tobiesmom)
 * [18 years ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-46/)
 * I accidentally deleted the MySql databases associated with several of my websites
   that have WordPress 2.5.1 blogs!
 * Oh, joy!
 * Now, when I load any of the websites’ URLs, I get a “Error establishing a database
   connection” message.
 * Any help as to how to restore the databases and get my blogs back would be most
   appreciated!
 * tobiesmom

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

 *  [scribblerguy](https://wordpress.org/support/users/scribblerguy/)
 * (@scribblerguy)
 * [18 years ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-46/#post-767624)
 * If you have back-ups of the databases, follow the instructions here: [Restoring Your Database From Backup](http://codex.wordpress.org/Restoring_Your_Database_From_Backup).
 * If you exported the contents of your sites using WordPress, follow the instructions
   here: [Importing Contents](http://codex.wordpress.org/Importing_Content#WordPress).
 * If you don’t have any back-ups, see if your webhost has a back-up of their MySQL
   server. They might be able to restore the DB’s for you. (There might be a fee
   involved.)
 * If you don’t have any back-ups and your web host is unable to help, then you 
   will likely have to start over. So, good luck.
 *  Thread Starter [tobiesmom](https://wordpress.org/support/users/tobiesmom/)
 * (@tobiesmom)
 * [18 years ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-46/#post-767638)
 * Thank you so much for your help! 🙂
 * My website has been restored and is functional again!
 * Thank goodness I had done a full backup, using the WordPress Backup plugin!
 * tobiesmom

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

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

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [tobiesmom](https://wordpress.org/support/users/tobiesmom/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/error-establishing-a-database-connection-46/#post-767638)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
