Report this

What is the reason for this report?

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

Posted on October 18, 2022
Chinthamani K

By Chinthamani K

Cloud Engineer

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



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!

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.