查询进程MySQL进程ID select `USER`, DB, concat('KILL ',id,';') from information_schema.processlist WHERE TIME > 100