-- 显示用户正在运行的线程
show full processlist;
show processlist;
select * from information_schema.processlist where db='db_name';
-- 查看innodb的事务
SELECT * FROM INFORMATION_SCHEMA.INNODB_TRX;
-- 查看事务对应的线程
select * from information_schema.processlist where ID=339495283;
查看mysql锁
最新推荐文章于 2025-03-31 10:34:56 发布