I'm running a master mysql server with multiple slaves. The replication process from master to slaves works fine. But there's one problem: I need to push the contents from one table from the slaves to the master.
That same table is also used by the master itself, but each mysql server has their own data in that table. Therefore I need to ADD the data from the slaves to the master.
I thought about keeping track of the queries at each slave and then pushing the queries out to the master, but it seems messy and whenever I would get an error I'd be stuck.
The table looks something like this:
Server ID (key field) - Date (key field) - Statistic
Each server keeps track of the statistics at his server and the master needs to consolidate all this for reporting purposes.
Any ideas?