http://dev.mysql.com/doc/refman/5.0/en/purge-binary-logs.html
PURGE { BINARY | MASTER } LOGSExemplos:
{ TO 'log_name
' | BEFOREdatetime_expr
}
PURGE BINARY LOGS TO 'mysql-bin.010';
PURGE BINARY LOGS BEFORE '2008-04-02 22:46:26';
"The binary log is a set of files that contain information about data modifications made by the MySQL server. The log consists of a set of binary log files, plus an index file...".
edite /etc/my.cnf and add this line:
expire_logs_days=10
Nenhum comentário:
Postar um comentário