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
7 hours 3 min ago
12 hours 51 min ago
14 hours 43 min ago
16 hours 27 min ago
20 hours 18 min ago
1 day 2 hours ago
1 day 2 hours ago
1 day 6 hours ago
1 day 12 hours ago
1 day 17 hours ago