MySQL主主模式

使用主主的前提 1 表的主键自增mysql master1 vim /etc/my.cnf auto_increment_increment = 2 自增ID的间隔如 1 3 5 间隔为2 auto_increment_offset = 1 ID的初始位置 log-slave-updates log-binweb master2 vim /etc/my.cnf auto_increment_inc
相关文章
相关标签/搜索