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 hour 6 min ago
1 hour 19 min ago
2 hours 26 min ago
6 hours 42 min ago
7 hours 11 min ago
21 hours 8 min ago
1 day 5 hours ago
1 day 12 hours ago
1 day 15 hours ago
1 day 17 hours ago