查看事务是否占用被锁:

SELECT * FROM information_schema.INNODB_TRX;
查看里面的 trx_mysql_thread_id字段

show full processlist;
找ID 和 trx_mysql_thread_id 是否有对应,如果有,使用下面命令

kill ID;

之后,插入 更新 删除 就OK了。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2021-07-19
  • 2021-11-21
  • 2021-07-14
猜你喜欢
  • 2022-12-23
  • 2021-12-02
  • 2021-08-26
  • 2021-11-06
相关资源
相似解决方案