Hi,
by mistake I fired an update query and all the records in the table in dat field got updated and also cannot rollback as auto_commit is on.
Is there any other way to retrieve the records?
Please help, its urgent. Thanks in advance.
Hi,
by mistake I fired an update query and all the records in the table in dat field got updated and also cannot rollback as auto_commit is on.
Is there any other way to retrieve the records?
Please help, its urgent. Thanks in advance.
You can get the records but they are in the state of the last update. Rollback does not work, cause the transaction is closed already. (auto_commit on).
I don't think you can rollback
a query/transaction once it's been commited (and, here, it has) : the old data has been replaced by the new one, and has disappeared.
As possible solutions :
If you've got binary logging enabled, you could restore the database from backups, then extract whatever changes were between the backuptime and your bad query from the binary log and re-apply them to the database.