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
1 day 2 hours ago
1 day 18 hours ago
1 day 21 hours ago
2 days 3 hours ago
2 days 12 hours ago
2 days 20 hours ago
3 days 1 hour ago
3 days 5 hours ago
3 days 14 hours ago
3 days 15 hours ago