Scenario: Master-Master replication
Description: Master A is the active db server whilst Master B is
a read only swappable db server hence both are creating binary
logs. During backup I run “FLUSH LOGS” in order to have a simpler
point in time recovery procedure if that case arises.
Problem: Flush logs is mean mean command :) …. it rotates not
only my binary logs but my error log too (since I user
error-log=blahblahblah in my my.cnf). Well given I flush logs
every night my error log is cycled through every night, but
unlike binary logs which have an incrimental number attached to
the fine, error logs only have a `-log` attached to the filename
and a second “FLUSH LOG” would just clear all error logs
permanently. That is really not fun believe me!
So what is the solution? you could either:
1. Not use “FLUSH LOGS” (nah that aint happenin)
2. Not use –error-log (that aint happenin either cos I need to …