清理: 方法一 Code: PURGE MASTER LOGS TO 'mysql-bin.000099'; 方法二 Code: PURGE MASTER LOGS BEFORE '2015-8-18 00:00:00'; 关闭日志: my.cnf注释掉 Code: #log-bin=mysql-bin