摘要:
MYSQL_CONN="-hhostip -uusername -ppassword"mysql ${MYSQL_CONN} -A -e"FLUSH TABLES WITH READ LOCK; SELECT SLEEP(86400)" &SEARCHING_FOR_SLEEP=0while [ ${SEARCHING_FOR_SLEEP} -eq 0 ]do sleep 3 SEARCHING_FOR_SLEEP=`${MYSQL} ${MYSQL_CONN} -A -e"SHOW PROCESSLIST;" | grep 阅读全文