Created
December 12, 2014 07:33
-
-
Save runningnet/8116d92113f4331e8674 to your computer and use it in GitHub Desktop.
Kill automatisch Mysql Connections
From http://www.percona.com/blog/2009/05/21/mass-killing-of-mysql-connections/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select concat('KILL ',id,';') from information_schema.processlist where user='root' into outfile '/tmp/a.txt'; | |
| source /tmp/a.txt; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment