-- mysql delete log online 1 mysql指令purgemysql> purge master logs to "mysql-bin.000410"; Query OK, 0 rows affected (3.71 sec)登入後複製 2 手動rm rm -rf mysql-bin.00040*; vim mysql-bin.log.index登入後複製5 set global expire_logs_days=5;登入後複製系統自動清理 以上是MySQL中3種清除binlog的方法!的內容,更多相關內容請關注PHP中文網(www.php.cn)!