emmtre
January 11, 2025, 3:00pm
1
@pandabrand @ben.turner @Nick-B
Instead of turning off the binary logging entirely in MySQL 8 with disable-log-bin
you can also set the max_binlog_size
and binlog_expire_logs_seconds
variables to some minimal values to reduce the binary log size significantly but still keep some data integrity and recovery operations.
max_binlog_size = 4096
binlog_expire_logs_seconds = 60
https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_max_binlog_size
https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_expire_logs_seconds
What issue or error are you experiencing?
Binary Logging is creating huge amounts of data at one point it was up to 50GB! I have tried to add a disable-log-bin to my.cnf but it gets overwritten on startup. How do I stop this???
What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc
System Details
Local Version:
Version 9.1.1+6738
Operating System (OS) and OS version:
Mac OS 15.1.1 (24B91)
Local Logs
Attach your Local Logs here (Help Doc - Retr…
1 Like
ben.turner
Split this topic
January 13, 2025, 4:02pm
2
A post was merged into an existing topic: How can I turn off Binary Logging?