My MySQL Master (with no connected slaves right now) writes out a 125 byte file every minute or so:
-rw-rw---- 1 mysql mysql 125 2012-12-28 16:46 snapshot-mysql-v2-bin.004876
-rw-rw---- 1 mysql mysql 125 2012-12-28 16:45 snapshot-mysql-v2-bin.004875
-rw-rw---- 1 mysql mysql 125 2012-12-28 16:43 snapshot-mysql-v2-bin.004874
-rw-rw---- 1 mysql mysql 125 2012-12-28 16:41 snapshot-mysql-v2-bin.004873
while writing the actual binary log content to a file with a much lower number:
-rw-rw---- 1 mysql mysql 330755915 2012-12-28 16:48 snapshot-mysql-v2-bin.004472
(and when that file fills up, it goes to the next file).
In addition, MySQL is not writing the name of the actual file with content (004472 above) to the .index file, so when I connect a slave, it can't replicate until I edit the .index file by hand.
MySQL version is 5.1.41-3ubuntu12.10-log.
Any ideas?
binlog_cache_size | 32768
binlog_format | STATEMENT
innodb_locks_unsafe_for_binlog | OFF
log_bin | ON
log_bin_trust_function_creators | OFF
log_bin_trust_routine_creators | OFF
max_binlog_cache_size | 18446744073709547520
max_binlog_size | 1073741824
sql_log_bin | ON
sync_binlog | 0