定时任务频繁插入数据导致锁表问题 -> 查询mysql进程_数据库

场景

定时任务每10秒插入一批数据,由于过去频繁导致锁表,从而无法再插入数据

解决方案


SELECT * FROM information_schema.innodb_trx
SELECT * FROM information_schema.innodb_locks
SELECT * FROM information_schema.innodb_lock_waits
kill 19692