Grant Surridge
asked on
Mysql - Copying Info to another database??
Hi
I have got a scheduled task in place that moves information from 1 database (Firebird) to another (MySQL). The issue that i have, is that some information that goes into the MySQL database, also needs to be in ANOTEHR MySQL database, which is stored on the same server.
Rather than modifying the scheduled task to do 2 updates, is it possible to create a trigger, that would move selected data into the other database.
E.g. If account = "041" then copy field A, B, C, D into the other database
Is this possible?
Thanks very much
PS - high point score as it would be very valuable to me
I have got a scheduled task in place that moves information from 1 database (Firebird) to another (MySQL). The issue that i have, is that some information that goes into the MySQL database, also needs to be in ANOTEHR MySQL database, which is stored on the same server.
Rather than modifying the scheduled task to do 2 updates, is it possible to create a trigger, that would move selected data into the other database.
E.g. If account = "041" then copy field A, B, C, D into the other database
Is this possible?
Thanks very much
PS - high point score as it would be very valuable to me
Yes, it is absolutely possible, as long as the server is MySQL 5.0 and the databases are hosted by the same MySQL server instance.
ASKER
Hi
That sounds great, but how?
That sounds great, but how?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.