How do I stop a rollback in progress. I killed a very long running INSERT INTO table1 SELECT * FROM table2 statement. I want to commit what's already there but I can't since it's rolling back.
This is a mySQL database.
MySQLrollback
How do I stop a rollback in progress. I killed a very long running INSERT INTO table1 SELECT * FROM table2 statement. I want to commit what's already there but I can't since it's rolling back.
This is a mySQL database.
Best Answer
Unfortunately, the correct answer is YOU CANNOT STOP A ROLLBACK. You have to let InnoDB clean up after itself.
If
table1
andtable2
are in the same databasemydb
and you want to loadtable1
fromtable2
in segments, use mysqldump:or
That way, when you interrupt the mysqldump, everything prior to that interruption is committed.
Give it a Try !!!