預設 mysql 會記錄 bin-log, 若不需要可關閉它, 方法如下:
修改/etc/my.cnf
log-bin=mysql-bin
改成
#log-bin=mysql-bin
當然也可以設定要保留多少天, 設定
expire_logs_days=3
表示保留三天