二、配置master服务器 1. 登录Master服务器,编辑my.cnf #vim /etc/my.cnf 在[mysqld]段添加以下内容:
[mysqld] log-bin=mysql-bin server-id=1 binlog-do-db=extmail binlog-ignore-db=mysql,test
解释:log-bin项是让Master服务器记录二进制日志这个是必须的; server-id=master_id 其中master_id必须为1到232