Question

How to replicate two or three mysql database server (which has various endpoints) into a single slave database server.

After following this tutorial i’m able to replicate the single mysql DB. “https://www.digitalocean.com/community/tutorials/how-to-set-up-replication-in-mysql” . But now need a guidance to replicate a two or three mysql server into a single server.

thanks & regards chinthamanikrish@gmail.com


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

This is doable with the multi-source MySQL replication which allows you to automatically combine data from multiple databases into one.

I don’t think that there is a tutorial on the DigitalOcean site on how to do that, so I would recommend following the official documentation from the MySQL website here:

https://dev.mysql.com/blog-archive/mysql-5-7-multi-source-replication-automatically-combining-data-from-multiple-databases-into-one/

Let me know how it goes!

Best,

Bobby