Domanda

Using master-slave replication, can I write to a table on the slave that DOES NOT exist on the master and never will, without interfering with replication with out-of-sync errors?

The master and slave both have bin logs enabled.

Will I break the replication doing that?

È stato utile?

Soluzione

If your replication is set in master ---> slave mode, there is no problem in writing to a slave table, even if the table is present in master. It wont affect the replication process. In your case, the only possible cause for a replication failure would be when you create a table in your master, which is already in the slave.

So the answer for your question is your replication won't break if you do this.

Here is a good refernce

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top