Question

Mariadb replication to DO VPS from on-premise

We have a website hosted on DO VPS.

WE also have some boxes running internally, the internal boxes process some data (24/7 continually) and outputs data into a table, which needs to also be on the website / DO VPS.

The VPS also has another schema which is the website data.

Can we do per-table or per-schema replication with MariaDB 10 to effectively push the database to the website continually?

Currently we push mysqldump via SSH overnight but it seems silly copying all the data everytime when only a few 100 rows have been added.

All servers running ubuntu 14.04 MariaDB 10.0

Database which needs copying is currently 300mb but this is expected to grow.


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

The answer is yes because I’ve just done it with an autossh tunnel.

Pretty instant replication, it replicates quicker than I can press refresh to test.