kill mysql processlist in whose time more than 200
snippet in sql

kill mysql processlist in whose time more than 200

user4361

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

mysql> source /tmp/a.txt;