#!/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