php kill all query sql code example
Example: 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;
mysql> select group_concat(concat('KILL ',id,';')) from
information_schema.processlist where user='root' and time > 500;
mysql> source /tmp/a.txt;