摘要:
一主一从:Master:OS:centos release 5.6 DB:mysql 5.5.8 IP:192.168.1.2Slave:OS:centos release 5.6 DB:mysql 5.5.8 IP:192.168.1.3修改主机Master配置文件 (/etc/my.cnf)[mysqld]//至少要有server-id、与log-bin两项server-id=1 log-bin=/var/lib/mysql/mysql-bin datadir=/var/lib/mysql//为了使用事务的InnoDB在复制中最大的持久性和一致性,你应该指定innodb_flush_log 阅读全文