Binary log in one of my server has grown more than 15 GB even after setting the max size to 1 GB. The MySQL server is as well not starting.
Can anyone highlight what might have caused it ?
Thanks.
Binary log in one of my server has grown more than 15 GB even after setting the max size to 1 GB. The MySQL server is as well not starting.
Can anyone highlight what might have caused it ?
Thanks.
The mysql var max_binlog_size
sets the size the currently being written to binlog file will grow to. When that threshold is hit (it can run over if you have open transactions) a new log file will be started. It does not control the the maximum allowable space the that the aggregate of all log files will grow too. AFAIK - there is not a setting for this unless it was very recently introduced. What I typically do is purge old binlogs past some threshold. Eg.
expire_logs_days = 90
You generally want to keep the binlogs since your last known good dump or other crash consistent backup.
It could be that a huge transaction was done.
A transaction is written in one chunk to the binary log, so it is never split between several binary logs. Therefore, if you have big transactions, you might see binary log files larger than max_binlog_size.