mysql刷新mysql-bin

#!/bin/bash
set -x
#echo `date`,"binlog" >> /opt/scripts/fl.sh.log 
/opt/app/mysql/bin/mysql -uroot -p123321 -e "flush logs;" && echo `date`,"binlog" >> /opt/scripts/fl.sh.log

 

posted @ 2016-07-27 21:59  bass  阅读(360)  评论(0编辑  收藏  举报