Mariadb replication to DO VPS from on-premise

Posted June 25, 2015 3k 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.

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.

Submit an Answer
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.