摘要: 1.创建用户:grant replication slave,replication client on *.* to repl@'192.168.1.%' IDENTIFIED By 'p4ssword';2.修改 my.cnf里面增加log_bin=mysql-binserver_id =10#这个要唯一,可以用IP地址后8位3.为了确认二进制日志文件是否已经在主库上创建,使用show master status 命令4.备库上需要在my.cnf 中增加类似的blg_bin = mysql-binserver_id = 2relay_log=/var/bin 阅读全文
posted @ 2013-11-15 11:34 jackluo 阅读(258) 评论(0) 推荐(0) 编辑