Answers for "kill mysql processlist in whose time more than 200"

SQL
3

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;
Posted by: Guest on December-08-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language