Search the MySQL manual:

4.5.5 PURGE MASTER LOGS Syntax

PURGE MASTER|BINARY LOGS TO binlog_name
PURGE MASTER|BINARY LOGS BEFORE date

MASTER and BINARY are here synonyms. This command is used to delete all binary logs strictly prior to the specified binlog or date, see section 4.10.7 SQL Commands Related to Replication.

User Comments

Add your own comment.