Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I exported my database to test whether it works. I then deleted the database and then it went to the "Trash" (I'm using Ubuntu). I then deleted it from "Trash" accidently.

Is there a way to recover my database?

share|improve this question

migrated from stackoverflow.com Sep 8 '09 at 13:41

This question came from our site for professional and enthusiast programmers.

I'm voting to close and move to superuser.com - it's about a deleted file in ubuntu. It makes little difference that it was a database. –  Kobi Sep 8 '09 at 9:16
I think you have to search for some file recovery tools. It depends on your file system: ext2, ext3 and so on. –  x2. Sep 8 '09 at 9:17
How did you export your database? –  Johan Sep 8 '09 at 9:46

2 Answers 2

if you exported your database you can import it again, right? e.g. using phpmyadmin

share|improve this answer

It's deleted permanently, the DB platform can do nothing for you, you might try a file recovery software, like Testdisk and PhotoRec (both work with Ubuntu), but it has a quite low success rate in these situations.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.