Ok here is my scenario
Server running master DB with other DB's for each site also on server. an update is written to master DB, and a trigger inserts this record into the relevant DB for a specific site which is intended to be replicated down to site DB level.
Trigger works fine, but the inserted record doesnt make it to the slave DB. I am using statement based replication as row based isnt an option. I have also tried calling a stored procedure and doing this as an event but nothing comes through.
Is there any way around this - by the way i am using MySQL 5.1
Thanks
Syntax for trigger below
dbmaster=server master db dbsite= server site DB (this is the replication master)
delimiter #
create trigger rstreplicate after insert on dbmaster.exchange
for each row begin insert into dbsite.exchange
select distinct new.TYPE, new.FILENAME, new.STATUS, new.USER_ID, new.INP_DATE, new.CHG_DATE from dbmaster.exchange where new.IP='127.0.0.1';
end#
delimiter ;