场景
定时任务每10秒插入一批数据,由于过去频繁导致锁表,从而无法再插入数据
解决方案
具体查看博客:https://blog.csdn.net/weberhuangxingbo/article/details/88709556
数据库中执行sql:
SELECT * FROM information_schema.innodb_trx
SELECT * FROM information_schema.innodb_locks
SELECT * FROM information_schema.innodb_lock_waits
kill 19692