Title: Deleted database please help
Last modified: August 19, 2016

---

# Deleted database please help

 *  Resolved [razclud](https://wordpress.org/support/users/razclud/)
 * (@razclud)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/deleted-database-please-help/)
 * Hello,
 * I recently deleted my database for my blog and as a result i get :Error establishing
   a database connection:, i tried to find some answers on the forum but people 
   were talking about problems between mysql 4 and mysql 5 and this is not the case,
   my previous database was mysql 5.
 * So i have the restored database on my PC, i have created a new database with 
   the exact name and description as of the one deleted in the first place. I went
   in it and uploaded my previous database and it still doesn’t work. My hosting
   company said that in order for it to work i have to do this :
 * “As for the error connecting to the database. It appears the wordpress installation
   is set to connect to one of the databases that was removed. You will need to 
   update the wordpress configuration to connect to the database the information
   for that installation was restore to.”
 * I am a beginner with mysql know nothing about it or how can I make it work. I
   thought that by creating a database with the same name will solve this but i 
   still get that error “Error establishing a database connection”.
 * I am desperate i don’t know what to do, my blog was what I did for a living and
   now its down.
 * Can some please help me out?
    Thank you very much

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

 *  [hotkee](https://wordpress.org/support/users/hotkee/)
 * (@hotkee)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/deleted-database-please-help/#post-798404)
 * edit your wp-config.php file and put the write username/password and db name 
   in it.
 *  Thread Starter [razclud](https://wordpress.org/support/users/razclud/)
 * (@razclud)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/deleted-database-please-help/#post-798421)
 * user and pass are correct, i checked for all of my domains, still doesn’t work,
   i get the same error 🙁
 *  Thread Starter [razclud](https://wordpress.org/support/users/razclud/)
 * (@razclud)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/deleted-database-please-help/#post-798448)
 * problem solved, when creating a new DB they change the server name so get the
   new server name and edit the wp-config.php file and it will work

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

The topic ‘Deleted database please help’ is closed to new replies.

## Tags

 * [deleted database](https://wordpress.org/support/topic-tag/deleted-database/)
 * [Error establishing a database connection](https://wordpress.org/support/topic-tag/error-establishing-a-database-connection/)
 * [wp-database](https://wordpress.org/support/topic-tag/wp-database/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [razclud](https://wordpress.org/support/users/razclud/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/deleted-database-please-help/#post-798448)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
