mysql切割slow日誌文件

#!/bin/bashmysql time=`date -d yesterday +"%Y-%m-%d"`sql /usr/bin/find  /data/mysql/apm-3306/log/ -name 'apm-slow-*' -mtime +7|xargs rm -rf ; mv /data/mysql/apm-3306/logslowquery_20181001.log /data/my
相關文章
相關標籤/搜索