mysql查询表死锁和结束死锁的方法
1、查询是否锁表
show open tables where in_use>0;
 
2、查询进程
show processlist
查询到相对应的进程,然后 kill id
 
3、查看正在锁的事务
select * from information_schema.innodb_locks; 
 
4、查看等待锁的事务
select * from information_schema.innodb_lock_waits;

相关文章:

  • 2022-12-23
  • 2021-12-27
  • 2021-12-21
  • 2021-07-30
  • 2021-11-01
  • 2021-12-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2021-08-21
相关资源
相似解决方案