转载  https://blog.csdn.net/wanderlustLee/article/details/79235005


Lock wait timeout exceeded; try restarting transaction是锁等待超时。是当前事务在等待其它事务释放锁资源造成的。

解决方法:

在mysql查询中执行以下指令

select * from information_schema.innodb_trx

结果如图:

操作mysql时抛出Lock wait timeout exceeded; try restarting transaction异常

找出与其他几个有参数不同的线程,找出他的线程号mysql_thread_id

执行命令kill +线程号即可解决。

相关文章:

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