server-id=11
log-bin=mysql-bin
server-id=12 log-bin=mysql-bin
grant replication slave on *.* to ‘rep‘@‘%‘ identified by ‘123456‘;

change master to master_host=‘192.168.1.11‘,master_user=‘rep‘,master_password=‘123456‘,master_log_file=‘mysql-bin.000010‘,master_log_pos=1065;



原文:http://www.cnblogs.com/yepo/p/5692458.html