[root@localhost ~]# mysql -u myroot -p
Enter password:

mysql> show OPEN TABLES where In_use > 0;  //查看被锁的表:

mysql> show processlist;  //查看被锁的表的进程;

20190625_mysql5.7查看及其解锁_被锁的表

mysql> kill 12641;  //杀死进程

有时候可能需要多杀几次;多执行几次 show processlist;

相关文章:

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