MySQL Binlogs
09 November 2011

On occasion, you will need to make sure that your MySQL binlogs of your master server stick around for a little while longer than normal. In my case, I'm doing a special slave build that will take some time and room for error and I wanted to make sure my binlogs stayed on the master a little longer than normal. This is a trivial task and can be done without a MySQL restart. All that needs to be done is to log into MySQL and execute: SET GLOBAL expire_logs_days=5;