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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gamebitsCommented:
If you dont have a backup file somewhere I'm affraid you are out of luck.

Gamebits
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.
idOleAuthor Commented:
Would you please tell me how to turn autocommit off, since I just change my table to type InnoDB. Thanks.
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
todd_farmerCommented:
Thanks for the points - sorry there isn't a better answer.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.