using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; using Microsoft.Office.Interop.Excel; using Syste
分享一个shell脚本,实现kill掉mysql中所有的sleep状态的client线程,有需要的朋友,可以参考研究下. 文件名称:killsleep.sh. #It is used to kill processlist of mysql sleep#!/bin/shwhile :do n=`mysqladmin processlist -uadmin -pxxxxx|grep -i sleep |wc -l` date=`date +%Y%m%d\[%H:%M:%S]` echo $n