num=`ps -ef | grep mysql | wc |awk '{print $1}'`
echo "there are $num mysql process!"
### restart mysql if process less than 3
if [ $num -lt 3 ]
then
echo "********begin restart mysql!***************"
cd ~/mysql
pwd
#$shutdown
#sleep 10
$startup
fi
echo "**"
echo "**************************************************"