Binary Logs Are Not Getting Purged Automatically With No Error Message

(Doc ID 2270417.1)

Last updated on JULY 03, 2017

Applies to:

MySQL Server - Version 5.5 and later
Information in this document applies to any platform.


After setting up expire_logs_days to a value greater than 0, binary logs older than expire_logs_days days will automatically be purged whenever a rotation of the binary log happen.

But after a log rotation, logs that are expected to expire does not get purge and there is no error messages in the error log for the issue.

For a similar issue, but with the error message "[Warning] file /var/log/mysql/bin-log.001234 was not purged because it was being readby thread number 4312" in the error log, see <Note 2085373.1>.



The system time may have been changed. 


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms