Add new comment
|
Hi sheikhsa, In a Master-Master replication there are many problems with the autonumber field tables. Because when a client insert a value in a table in a master on the other master we can have another client with another insert in the same table. So we have a possible conflict when the replication mechanism replies these two records, because if this ID is relationate with another table I think we corrupting the relational logical. We must fix addend two lines in the my.cnf of two masters auto_increment_increment auto_increment_offset Example in this case we can set to the first Master the values: auto_increment_increment = 2 auto_increment_offset = 1 and in the other: auto_increment_increment = 2 auto_increment_offset = 2. So in one master we generate only the pairs number and dispair in the other, when the replication come we haven't conflicts.
Reply |





Recent comments
2 hours 20 min ago
4 hours 2 min ago
6 hours 28 min ago
6 hours 34 min ago
11 hours 8 min ago
13 hours 9 min ago
16 hours 32 min ago
18 hours 39 min ago
18 hours 50 min ago
21 hours 16 min ago