mysql如何杀掉指定用户的所有链接

select concat('KILL ',id,';') from information_schema.processlist where user='dbaas_t2' into outfile '/tmp/a.txt';
source /tmp/a.txt;

你可能感兴趣的:(mysql,kill,user)