I need to replicate different MySQL databases from multiple servers into a single slave server. How can this be done? Do I need a separate MySQL instance on the slave for each master server? Or is there a way to define multiple master hosts?
We're basically using the slave as a hot backup for multiple websites. Should we be thinking about clustering instead of replication?
Best way to achieve that would be a real backup solution... but when you do it the way you describe define one slave instance per master - this way you stay flexible, for example if any change is needed you could even move one or more of the slave instances to another machine without any influence on the other slaves/masters...
EDIT - as per comments:
For a description on how to setup multiple instances of MySQL on the same machine see for example
This keeps you even flexible enough to have different MySQL versions in parallel (identical per slave/master combination)...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With