If I create a master-slave replication, do the changes I make to the slave also appear in master?
For example database example1
is master and database example2
is the exact copy of example1
as a slave. I add a row in one of the tables in example2
, I want the change to show up in example1
. Does master-slave replication allow this.
Usually, Master-> Slave is one-way synchronization. You have mentioned that your example1 and example2 are identical. To manually check my.cnf files at MySQL folder and verify both cnf files have been configured correctly.
I hope you have configured example1 as master and got an identical copy of that for the example2 and not changed my.cnf correctly according to your required logic.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.