#!/bin/bash#by LCUSER=rootPASS=123456PID=`mysql -u$USER -p$PASS -e "show processlist;"|grep -i 'sleep'|awk '{print $1}'`for n in $PIDdo mysql -u$USER -p$PASS -e "kill $n"done
本文共 219 字,大约阅读时间需要 1 分钟。
#!/bin/bash#by LCUSER=rootPASS=123456PID=`mysql -u$USER -p$PASS -e "show processlist;"|grep -i 'sleep'|awk '{print $1}'`for n in $PIDdo mysql -u$USER -p$PASS -e "kill $n"done
转载于:https://blog.51cto.com/10896311/1720833