Denn ich sehe dort eine Menge Prozesse, und die Spalte "Zeit" zeigt für alle große Werte an.
Antworten
Zu viele Anzeigen?
Iberê
Punkte
1181
Kürzlich musste ich dies tun, und ich kam auf folgende Lösung
-- GROUP_CONCAT turns all the rows into 1
-- @q:= stores all the kill commands to a variable
select @q:=GROUP_CONCAT(CONCAT('KILL ',ID) SEPARATOR ';')
FROM information_schema.processlist
-- If you don't need it, you can remove the WHERE command altogether
WHERE user = 'user';
-- Creates statement and execute it
PREPARE stmt FROM @q;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;
Auf diese Weise müssen Sie nicht in einer Datei speichern und alle Abfragen mit einem einzigen Befehl ausführen.
EcchiOli
Punkte
774
mikesl
Punkte
2094
user3269995
Punkte
59
wiebel
Punkte
51