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