Answers for "mysql kill"

SQL
1

bulk kill mysql processlist

SELECT CONCAT('KILL ',id,';') AS IDs
FROM information_schema.processlist 
WHERE TIME >10
AND command = "sleep"
Posted by: Guest on December-14-2020
1

mysql kill

mysql> SELECT GROUP_CONCAT(CONCAT('KILL ',id,';') SEPARATOR ' ') 
 
FROM information_schema.processlist WHERE user <> 'system user';
Posted by: Guest on January-29-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language