1,首先查看当前数据库的所有事务
- SELECT * FROM information_schema.INNODB_TRX;
2,通过mysql thread id 查找对应客户端的请求sql线程
select * from information_schema.processlist where id=1662333;
netstat -nlatp |grep 23452
ps -ef|grep 12059
当前数据库所有锁
SELECT * FROM information_schema.innodb_locks
数据库锁和事务关系
SELECT * FROM information_schema.innodb_lock_waits
5728

被折叠的 条评论
为什么被折叠?



