put the following line in my.cnf and restart mysql, mysql will clean binlog old than 30 days automatically.
expire_logs_days = 30
example:
set global expire_logs_days=7;
flush logs;
put the following line in my.cnf and restart mysql, mysql will clean binlog old than 30 days automatically.
expire_logs_days = 30
example:
set global expire_logs_days=7;
flush logs;