Mariadb replication to DO VPS from on-premise

June 25, 2015 2.5k views

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.

1 Answer

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.

Have another answer? Share your knowledge.

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