Created
January 14, 2014 13:05
-
-
Save boris/8417992 to your computer and use it in GitHub Desktop.
Massive kill mysql processes.
This file contains 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 contact .. from TALBE where user="user" and CONDITION into outfile 'path';*/ | |
select concat('KILL ',id,';') from information_schema.processlist where user='root' and Info like "%fail%" outfile '/tmp/kill.txt'; | |
source /tmp/kill.txt; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment