Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Is `log_bin` necessary on slave in master-slave MySQL replication?

$
0
0

I'm running out of disk space on a slave due to MySQL binary logs (mysql-bin.000xxx) being stored on the slave.

Here's the relevant portion of the slave's my.cnf:

binlog_format  = mixed
log_bin        = /var/log/mysql/mysql-bin.log
sync_binlog    = 1

I'm currently catching up to Master, so I expect to see a bunch of mysql-relay-bin.00xxxx's on Slave, but I'm not sure why it also needs mysql-bin.000xxx's.

The Master also has a lot of mysql-bin.000xxx's, but I expect it there.


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>