Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to do replication of only one table with different mysql databases in different hosts?

I'm trying to do replication of one table in a remote host in my database. Suppose there is a change in the remote database and i want it commited or replicated to my database in order to keep it up to date with the lastest changes without having to run any dumps, cron scripts or something similar. Is there any way to replicate only one table from a remote database into a table inside the database in the host that i'm working with? By the way, i'm using mysql databases in a freebsd based systems both places.

Thanks for advance

like image 493
markcial Avatar asked Oct 14 '22 02:10

markcial


1 Answers

One possible solution would be to use FEDERATED engine (possibly coupled with event scheduler to update your local table)

like image 90
Mchl Avatar answered Oct 27 '22 18:10

Mchl