查一下受影响的语句
select id, db, user, host, command, time, state, info
from information_schema.processlist
where command != 'Sleep'
order by time desc ;
找到死锁的事务
select * from information_schema.innodb_trx
杀死
kill 796296
查一下受影响的语句
select id, db, user, host, command, time, state, info
from information_schema.processlist
where command != 'Sleep'
order by time desc ;
找到死锁的事务
select * from information_schema.innodb_trx
杀死
kill 796296
本文标题:mysql 事务死锁了,手动释放
本文链接:https://www.haomeiwen.com/subject/ezywrltx.html
网友评论