mysql查看被锁的进程
//查看所有进程
show processlist;
//查询是否锁表
show OPEN TABLES where In_use > 0; //查看被锁住的
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS;
//等待锁定
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS;
kill 12041
2022-04-29 03:17:50
mysql查看被锁的进程
//查看所有进程
show processlist;
//查询是否锁表
show OPEN TABLES where In_use > 0; //查看被锁住的
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCKS;
//等待锁定
SELECT * FROM INFORMATION_SCHEMA.INNODB_LOCK_WAITS;
kill 12041