#!/bin/bash user=dbmanger pass=abc123 mysql -u $user -p $pass -e "show processlist;" > process.txt for i in `cat process.txt|grep 'dbread'|awk '{print $1}'` do mysql -u $user -p $pass -e "kill $i;" done
0 意見:
張貼留言