标签:bin process $1 sql mys list one 进程 pass
#!/bin/bash
passwd=“"
for id in `mysql -uxsjwslm_js -p$passwd -e "show processlist"|awk ‘/Sleep/{print $1}‘`
do
mysql -uxsjwslm_js -p$passwd -e "kill $id"
echo `date +"%F %T"` "kill $id" >> ar/log/mysql_kill_sleep.log
done
标签:bin process $1 sql mys list one 进程 pass
原文地址:https://www.cnblogs.com/zhangfu/p/10364616.html