select concat('KILL ',id,';')
from information_schema.processlist
where user='root'
and INFO like 'SELECT%' into outfile '/tmp/a.txt';
source /tmp/a.txt;
Изтриване на всички конекции в MySQL
Comments
One response to “Изтриване на всички конекции в MySQL”
-
Едно „HARD“ ще помогне доста
select concat(‘KILL HARD ‘,id,’;’)
Вашият коментар