Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

kill mysql processlist in whose time more than 200

mysql> select group_concat(concat('KILL ',id,';')) from 
information_schema.processlist where user='root' and time > 500;

mysql> source /tmp/a.txt;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #kill #mysql #processlist #time
ADD COMMENT
Topic
Name
9+8 =