Undo upate command of mysql database

     
Hi there,        

I have accidentally updated my mysql table in all the rows, while my intension was just to update one row. I need help to undo the update command and get my old data back. Thanks a lot.
idOleAsked:
Who is Participating?
 
todd_farmerCommented:
SET AUTOCOMMIT=0

There's some good information on transactions that you will want to read here:

http://dev.mysql.com/doc/refman/4.1/en/commit.html
0
 
gamebitsCommented:
If you dont have a backup file somewhere I'm affraid you are out of luck.

Gamebits
0
 
todd_farmerCommented:
I agree with gamebits.  Hopefully, you have a backup.  This is also one reason to use transactional tables (InnoDB) and work with autocommit off - so you can rollback changes.  Sorry there's not a better answer.
0
 
idOleAuthor Commented:
Would you please tell me how to turn autocommit off, since I just change my table to type InnoDB. Thanks.
0
 
todd_farmerCommented:
Thanks for the points - sorry there isn't a better answer.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.