Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There are some rows in a table, by mistakenly I had deleted all rows from the table and data got commited. So is there any way to restore data for that table.

I am not having backup of the database.

I did not enable Binary Logging.

share|improve this question
Do you have a backup of the database? – mrdenny Sep 15 '11 at 8:26

If you had replication (or binary logging) enabled (log-bin option), then you could recover your data (or part of them) by replaying binary logs.

If you have some backup (and recorded binary log position from time of backup), you need recover a backup and then replay logs from position, when backup was taken.

share|improve this answer

If you don't have a backup, then NO. The data is lost.

I suggest you learn about the --i-am-a-dummy-option and turn off autocommit.

share|improve this answer
autocommit doesn't help, when table is stored in engine, which doesn't support transactions (eg. MyISAM was the default before 5.5). – sumar Sep 17 '11 at 6:21
Small effort to change it to a type that does... – Bart De Vos Sep 17 '11 at 9:32

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.