-- mysql delete log online
1 mysql指令purge
mysql> 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)!