max_binlog_size & log-bin size

Solution 1:

In addition to setting expire_logs_days you can run a command immediately to purge old logs:

mysql> PURGE BINARY LOGS TO 'mysql-bin.000039';

Make sure no slaves are reading from logs you're trying to purge, or you will break replication.

See the MySQL Reference Manual: Binary logs