一台服务器递增1,3,5。
另一个服务器递增2、4、6
发布于 2010-01-21 08:12:55
基于这篇有洞察力的教程:http://www.howtoforge.com/mysql_master_master_replication#comment-12927
通过将此代码添加到mysqld下的my.cnf中,使Master 1仅自动递增奇数
auto_increment_increment= 2
auto_increment_offset = 1将此代码添加到mysqld下的my.cnf中,使Master 2仅自动递增偶数
auto_increment_increment= 2
auto_increment_offset = 2https://stackoverflow.com/questions/2105719
复制相似问题