LoginSignup
7
6

More than 5 years have passed since last update.

MySQLでプロセスすべて切る(KILL)

Posted at

MySQLでプロセスすべて切る(KILL)

どうしてもプロセスが残って消えない場合。
プロセスをすべて削除したい場合にお使いください。

mysql  -e "select concat('KILL ',id,';') from information_schema.processlist where time > 0;" | sed -e '1,1d' | mysql
7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6