-- 查看進程,刪除trx_state=LOCK的進程 select * from information_schema.innodb_trx; kill trx_id; -- 刪除耗時較長的線程 SELECT * from information_schema.`PROCESSLIST` WHERE Time > 1000 AND USER = 'root' ORDER BY TIME desc; kill id;
-- 查看進程,刪除trx_state=LOCK的進程 select * from information_schema.innodb_trx; kill trx_id; -- 刪除耗時較長的線程 SELECT * from information_schema.`PROCESSLIST` WHERE Time > 1000 AND USER = 'root' ORDER BY TIME desc; kill id;