Quantcast
Channel: MySQL Forums - Replication
Viewing all articles
Browse latest Browse all 1562

replication based on the result of a statement (no replies)

$
0
0
I'm sure there must be a way to achieve this, but I can't think of it.

What I have is a Master database, that contains the incoming data for all of my customers.

A need has now arisen, to replicate the data for just one customer to a DB on their network.

I have a VPN set up between the offices, and I have a MySQL database on each side of the vpn, which is replicating fine.

However, how can I get the data out of my Master, onto my Slave for just that one customer?

I thought about using a trigger, which would extract just that customers data to a separate table, and then I could just replicate that table to my slave. But of course, I can't replicate the result of a trigger, meaning I would have to replicate the full data on both sides, and then fire the trigger. But then I have the same problem, how do I get just the one customers data across the VPN?

any ideas would be appreciated.

Viewing all articles
Browse latest Browse all 1562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>