Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop ROLLBACK in progress?

Tags:

mysql

rollback

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. Appears the rollback happened automatically once I killed the long running process.

This is a mySQL database.

like image 647
N.. Avatar asked Apr 09 '26 22:04

N..


1 Answers

You could try this.

https://dba.stackexchange.com/questions/5654/internal-reason-for-killing-process-taking-up-long-time-in-mysql

You can kill the mysqld process and set innodb_force_recovery to 3 to bring the database up without the rollback, then DROP the table that is causing the runaway rollback.

like image 176
Jaydee Avatar answered Apr 11 '26 12:04

Jaydee