mysql 锁相关的视图

 

查看事务,以及事务对应的线程ID   如果发生堵塞、死锁等可以执行kill  线程ID  杀死线程      kill  199

SELECT * FROM information_schema.INNODB_TRX

 

SELECT * FROM information_schema.INNODB_LOCKS

 

查看事务堵塞的情况

SELECT * FROM information_schema.innodb_lock_waits

requesting_trx_id

requested_lock_id

blocking_trx_id

blocking_lock_id

相关文章:

  • 2021-08-18
  • 2021-06-03
  • 2021-04-26
  • 2022-12-23
  • 2021-07-25
  • 2021-06-12
  • 2021-08-25
猜你喜欢
  • 2021-05-12
  • 2021-10-12
  • 2022-01-24
  • 2022-12-23
  • 2021-10-20
  • 2021-11-30
  • 2021-08-24
相关资源
相似解决方案