mysql手动删除BINLOG的方法
程序员文章站
2024-02-15 13:14:16
在mysql中执行以下命令:复制代码 代码如下: purge {master | binary} logs to ‘log_name' purge {m...
在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);