mysql锁表解决 2016-08-02 mysql database, debug, mysql 0 Comments 1、查询是否锁表 1show OPEN TABLES where In_use > 0; 2、查询进程 1show processlist 查询到相对应的ID 3、杀死进程 1kill id other: 12345查看正在锁的事务SELECT * FROMINFORMATION_SCHEMA.INNODB_LOCKS; 查看等待锁的事务SELECT * FROMINFORMATION_SCHEMA.INNODB_LOCK_WAITS;