mysql手动删除BINLOG的方法
时间:2020-11-02 13:31 作者:admin610456
在mysql/' target='_blank'>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);
(责任编辑:admin)