Setup the '
expire_logs_days' system variable to expire binary log files automatically after a given number of days.
-
Show 'expire_logs_days' value:
-
You can setup the 'expire_logs_days' system variable:
-
Or you can set the 'expire_logs_days' system variable in "my.cnf" file ("vmy.ini"):