MySQL replication ignore data changes but not table structure changes
Posted
by
Ed Manet
on Server Fault
See other posts from Server Fault
or by Ed Manet
Published on 2012-10-04T14:34:26Z
Indexed on
2012/10/04
15:40 UTC
Read the original article
Hit count: 376
mysql
|mysql-replication
Is there a way to setup MySQL replication so that CREATE TABLE and ALTER TABLE statements get replicated but INSERT, DELETE and UPDATE statements do not?
I've got replication working fine and have several tables that are ignored as per the requirements. But we have a requirement that the slaves have an empty copy of the ignored table. We create those empty copies before we start replicating. Since the table is ignored, table structure changes don't get passed down from the master to the slave's empty copy.
I know it's a strange requirement.
© Server Fault or respective owner