Mysql殺程式

hunterjoy發表於2015-07-12
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部落格 ” ,連結:http://blog.itpub.net/543979/viewspace-1730382/,如需轉載,請註明出處,否則將追究法律責任。

相關文章