摘要: 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 阅读全文
posted @ 2012-11-28 14:31 seasonzone 阅读(246) 评论(0) 推荐(0) 编辑