mysql复制的配置

# 78服务器
server-id=78
# 从哪个数开始
auto_increment_offset=1 
# 每次增加多少
auto_increment_increment=2
log-bin=mysql-bin
master-host=10.65.0.79
master-user=root
master-password=123456
master-port=3306
log-slave-updates=1
slave-skip-errors=all
replicate-do-db=rep
replicate-ignore-db=mysql
master-connect-retry=60
# 79服务器
server-id=79
auto_increment_offset=2
auto_increment_increment=2
log-bin=mysql-bin
master-host=10.65.0.78
master-user=root
master-password=123456
master-port=3306
log-slave-updates=1
slave-skip-errors=all
replicate-do-db=rep
replicate-ignore-db=mysql
master-connect-retry=60
posted on 2015-03-07 16:38  Andy Niu  阅读(209)  评论(0编辑  收藏  举报