ITPub博客

首页 > 数据库 > MySQL > Mysql杀进程

Mysql杀进程

原创 MySQL 作者:hunterjoy 时间:2015-07-12 11:50:49 0 删除 编辑
mysql> show processlist;
+----+------+------------------+--------------------+-------------+-------+-----------------------------------------------------------------------+------------------------------------------------------------------------------+
| Id | User | Host             | db                 | Command     | Time  | State                                                                 | Info                                                                         |
+----+------+------------------+--------------------+-------------+-------+-----------------------------------------------------------------------+------------------------------------------------------------------------------+
|  1 | repl | linfytest3:57368 | NULL               | Binlog Dump | 20957 | Master has sent all binlog to slave; waiting for binlog to be updated | NULL                                                                         |
|  2 | root | localhost        | linfy              | Query       |  2359 | Waiting for table metadata lock                                       | alter table t_idb_big change is_nullable nullable varchar(3), algorithm=copy |
|  3 | root | localhost        | information_schema | Query       |     0 | init                                                                  | show processlist                                                             |
+----+------+------------------+--------------------+-------------+-------+-----------------------------------------------------------------------+------------------------------------------------------------------------------+
3 rows in set (0.00 sec)


mysql> kill 2;
Query OK, 0 rows affected (0.01 sec)

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/543979/viewspace-1730382/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: redis操作之一
请登录后发表评论 登录
全部评论

注册时间:2007-12-31

  • 博文量
    168
  • 访问量
    389692