mysql批量kill死锁线程 发表于2016 年 3 月 14 日由ares 回复 for id in `mysqladmin processlist | grep -i locked | awk '{print $1}'` do mysqladmin kill ${id} done