Title: deleted sql database
Last modified: August 18, 2016

---

# deleted sql database

 *  [donjz](https://wordpress.org/support/users/donjz/)
 * (@donjz)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/deleted-sql-database/)
 * I recently re-installed wordpress from mywebsite.com/blog to the root directory
   mywebsite.com. When I uninstalled the prior installation of wordpress at /blog,
   it also deleted my sql database. I did back-up my previous wp directory by downloading
   a copy of the entire directory. However, I do not know if it included a copy 
   of my blogs.
 * What I’m trying to say is, I’m #&$(*ed-up!!! Does WP keep a record of blogs on
   the installed directory or are all the data stored in the sql database? If WP
   has a copy of the database on the installation directory, which I downloaded,
   maybe I’m okay. But if not, I’m in serious trouble.
 * Can anyone advise?
 * Thanks.

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

 *  [ifelse](https://wordpress.org/support/users/ifelse/)
 * (@ifelse)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/deleted-sql-database/#post-232694)
 * All the data is stored in the database, but how exactly did you “delete” the 
   database?
 *  Thread Starter [donjz](https://wordpress.org/support/users/donjz/)
 * (@donjz)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/deleted-sql-database/#post-232695)
 * I did not delete it on purpose. My hosting company has this user interface where
   you can install and uninstall software. It lists the installations of wordpress,
   which I had three. One for my personal blog which I installed under mywebsite.
   com/blog, a new installation at mywebsite.com root, and another site for my friends.
   I clicked on “remove” for the /blog installation.
 * When I went back to my website, I can’t access it anymore.
 * So, does WP has a copy of the database stored in the installation directory?
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/deleted-sql-database/#post-232697)
 * No, it doesn’t. There is no “database” in the installation directory – only the
   WP files. Sorry, it seems you lost your blog.
 *  Thread Starter [donjz](https://wordpress.org/support/users/donjz/)
 * (@donjz)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/deleted-sql-database/#post-232698)
 * NOOOOOOOOOO!!!
 * In the future, can someone make sure that WP keeps a back-up of the database 
   on the installation directory? It will surely help a lot of dingbats like me.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/deleted-sql-database/#post-232699)
 * You can try to ask your host whether they have a backup or if there any way to
   retrieve it…
    And as for the future: next time do not rely on those “automatic”
   things, just use this tutorial: [http://codex.wordpress.org/Moving_WordPress](http://codex.wordpress.org/Moving_WordPress)
 *  [Glo](https://wordpress.org/support/users/glo/)
 * (@glo)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/deleted-sql-database/#post-232714)
 * donjz, how did you backup your wp directory? Did you happen to use cpanel to 
   backup everything?
 *  [ifelse](https://wordpress.org/support/users/ifelse/)
 * (@ifelse)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/deleted-sql-database/#post-232717)
 * donjz,
    It’s not 100% clear that the database has been “deleted”. The db resides
   in a totally different area from your web sites file area.
 * If your database tables are still there, then if you reupload the WP files, then
   you should find that everything is back as it was i.e. all your old data is back.
   Before we panic, let’s try that first, ok?
 * _“can someone make sure that WP keeps a back-up of the database on the installation
   directory?”_
    Due to the way databases work, this is virtually impossible. What
   you must always do is backup your database.
 *  Thread Starter [donjz](https://wordpress.org/support/users/donjz/)
 * (@donjz)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/deleted-sql-database/#post-233366)
 * Thanks guys. Bluehost.com has not replied to my inquiry about this matter. I 
   guess, my database is forever lost. Anyway, I re-installed everything with a 
   new theme _Old Vigan_ that I designed (not from scratch though).
 *  [ifelse](https://wordpress.org/support/users/ifelse/)
 * (@ifelse)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/deleted-sql-database/#post-233376)
 * [Skippy’s DB backup plugin ](http://www.skippy.net/blog/2005/07/12/wordpress-database-backup/)
   was designed to help prevent this sort of stuff happening again in future.

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

The topic ‘deleted sql database’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 4 participants
 * Last reply from: [ifelse](https://wordpress.org/support/users/ifelse/)
 * Last activity: [20 years, 11 months ago](https://wordpress.org/support/topic/deleted-sql-database/#post-233376)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
