Since I don’t have any binary logs in my run folder for any websites I spun up a test website with MySQL 8.0 and then lo and behold there are the binary logs. I then tried to edit the my.cnf.hbs
config file in the mysql folder for the test website and add a value for max_binlog_size
. But whatever I tried I couldn’t start the test website and I got an error message that the max_binlog_size
is an unknown variable. So it didn’t work to try to decrease the size of the the binary logs. There are some other interesting variables like binlog_expire_logs_seconds
. Please see the documentation for more info. It also looks like there is a purge statement.
> You can delete all binary log files with the RESET MASTER statement, or a subset of them with PURGE BINARY LOGS. See Section 15.7.8.6, “RESET Statement”, and Section 15.4.1.1, “PURGE BINARY LOGS Statement”.
https://dev.mysql.com/doc/refman/8.0/en/binary-log.html
https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_max_binlog_size