Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
4  
Do you have a backup of the database? –  mrdenny Sep 15 '11 at 8:26
add comment

2 Answers 2

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
add comment

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
add comment

Your Answer

 
discard

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.