mysql手動刪除BINLOG的辦法。本站提示廣大學習愛好者:(mysql手動刪除BINLOG的辦法)文章只能為提供參考,不一定能成為您想要的結果。以下是mysql手動刪除BINLOG的辦法正文
在MySQL中履行以下敕令:
PURGE {MASTER | BINARY} LOGS TO ‘log_name'
PURGE {MASTER | BINARY} LOGS BEFORE ‘date'
PURGE {MASTER|BINARY} LOGS BEFORE DATE_SUB(NOW(),INTERVAL 7 DAY);
例如:
mysql>PURGE MASTER LOGS TO ‘mysql-bin.010′;
mysql>PURGE MASTER LOGS BEFORE ‘2008-06-22 13:00:00′;
mysql>PURGE MASTER LOGS BEFORE DATE_SUB( NOW( ), INTERVAL 7 DAY);