当前位置: 代码迷 >> 综合 >> mysql ---kill process解决死锁
  详细解决方案

mysql ---kill process解决死锁

热度:89   发布时间:2023-10-23 01:50:28.0

来源:http://ri0day.blogbus.com/logs/59186177.html

mysql> show processlist;

+----+------+-----------+------+---------+------+-------+------------------+

| Id | User | Host      | db   | Command | Time | State | Info             |

+----+------+-----------+------+---------+------+-------+------------------+

|  7 | root | localhost | yy   | Sleep   |  154 |       | NULL             | 

|  8 | root | localhost | NULL | Query   |    0 | NULL  | show processlist | 

+----+------+-----------+------+---------+------+-------+------------------+

2 rows in set (0.00 sec)

mysql> kill 7

  -> ;

mysql> show processlist;

+----+------+-----------+------+---------+------+-------+------------------+

| Id | User | Host      | db   | Command | Time | State | Info             |

+----+------+-----------+------+---------+------+-------+------------------+

|  8 | root | localhost | NULL | Query   |    0 | NULL  | show processlist | 

+----+------+-----------+------+---------+------+-------+------------------+

1 row in set (0.00 sec)



hive

shou locks

  相关解决方案