MySQL Master-Slave-Slave Configuration

gregavola picture gregavola · Aug 15, 2012 · Viewed 8.4k times · Source

Quick questions about MySQL Master-Slave-Slave set-ups:

I currently have a Master-Slave set up right now and I would like to add another slave. Would it be possible to clone the server running the slave, and then spin up a new server with the image from the slave, and have it pick up right where it left off? So whatever the binlog was at the time of the copy it would just run until it catches up with the master?

Ideally - I'm trying to start another slave the connects to the master without shutting down the Master for a backup. Any advice or guidance would be great. Thanks!

Answer

CyberDem0n picture CyberDem0n · Aug 15, 2012

Yes, you can shutdown slave instance, and copy all it's data to another slave (including logs).
Don't forget to edit my.cnf on second slave (you should change server-id)
Then start both slave servers