Изтриване на всички конекции в MySQL

select concat('KILL ',id,';') 
from information_schema.processlist 
where user='root' 
  and INFO like 'SELECT%' into outfile '/tmp/a.txt'; 
source /tmp/a.txt;
Категория:

Един отговор

  1. Аватарът на Martin Lazarov

    Едно „HARD“ ще помогне доста

    select concat(‘KILL HARD ‘,id,’;’)

Logged in as {{omniform_current_user_display_name}}. Edit your profile. Log out? Required fields are marked *

Your email address will not be published. Required fields are marked *

Comments are closed.

You must be logged in to post a comment.