SOURCE /tmp/kill_process.txt
Source: How to Kill All MySQL Processes For a Specific User | DBA Diaries
SELECT CONCAT(‘KILL ‘,id,’;’) AS run_this FROM information_schema.processlist WHERE user=’123user’ iNTO OUTFILE ‘/tmp/kill_process.txt’;
SOURCE /tmp/kill_process.txt