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;
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;
bulk kill mysql processlist
SELECT CONCAT('KILL ',id,';') AS IDs
FROM information_schema.processlist
WHERE TIME >10
AND command = "sleep"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us