在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);如何用workbench导出mysql网站数据库关系图