Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MySQL++ - Programming with the C++ API to MySQL
MaxDB - Everything about MaxDB, formerly known as SAP DB
ODBC - ODBC with the MySQL Connector/ODBC driver
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
Subject: mysql openssl Question
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
Update one field with more fields from another table
Subject: Getting Identity after INSERT
ERROR 2002: Can 't connect to local MySQL server through socket
mysql test 4 1 fails with the gis test
Subject: MySQL Cluster Software
Downgrade Mysql from 4 to 3 23
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Can 't access mysql after kernel upgrade
Executing MySQL Commands From Within C Program
Comparing and writing out BLOBS
Subject: Re: Preventing Duplicate Entries
FULLTEXT query format question
Strange behavior, Table Level Permission
Does the binary log enabling affect the MySQL performances?
mysql:it 's a db not a dbms how it 's possible?!
mysql have same function mthod as Oracle decode()
 
trigger/cron process questions...

trigger/cron process questions...

2007-11-13       - By bruce

 Back
Hi.

I'm considering a situation where I have a number of child/client servers,
each of which are running local apps that feed into a local mysql db/tbl. In
order to manage the data, I want to copy all the mysql db/tbl data from the
chil/client systems, to a single central/master db.

I do not want to simply have the local apps write directly to the central db
for a number of reasons. The approach I need, is to write local, and then
copy this information from the local mysql, to the central/parent mysql/db
on a separate machine.

I've considered Replication (Master/Slave) but then realized that you can't
have a slave, with multiple masters. In my case, each of the child systems,
would be considered to be Masters, with the central machines being the
slave. So it appears that the mysql replication isn't suitable.

I'm considering simply using cron processes on the child machines, where the
cron app would simply fir on a periodic basis, and write any new data from
the child db to the central system (assuming the network/central machine is
up/running). This kind of process is simple, full proof, and pretty
straightfoward to implement.

In researching, I've come across articles discussing triggers, and I'm
wondering if triggers might prove usefful or this issue.

Is it possible to have a "periodic" trigger, IE a trigger that gets fired
based on time. I could have a cron process that updates a tbl on a periodic
basis, and a trigger on that tbl. When that trigger fires, it could then
update/insert the local data into the remote/central db/tbl.

Thoughts/Comments/Pointers/Etc.. .would be helpful.

Thanks


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/mysql?unsub=mysql@(protected)