时间:2021-07-01 10:21:17 帮助过:47人阅读
主服务器:window XP,mysql 5.5
从服务器:window7,mysql 5.1
在从服务器start slave时,一直提示error 1200:The server is not configured as slave; fix in config file or with CHANGE MASTER .
在从服务器上直接用
change master to
master_host='192.168.1.103',
master_user='repl',
master_password='111111',
master_log_file='master-bin.000001',##与主服务器一致
master_log_pos=107;##与主服务器一致
可start slave还是报这个错误。
小弟实在是崩溃了,再次求教各位大神。
一下是主从服务器的my.ini配置:
主:
server-id=1
log-bin=C:/Program Files/MySQL/MySQL Server 5.5/master-bin.log
binlog-do-db=ld
binlog-ignore-db=mysql
log-error=C:/Program Files/MySQL/MySQL Server 5.5/master-error.log
relay-log=C:/Program Files/MySQL/MySQL Server 5.5/slave-relay.log
relay-log-info-file=C:/Program Files/MySQL/MySQL Server 5.5/slave-relay-log.info
relay-log-index=C:/Program Files/MySQL/MySQL Server 5.5/slave-relay-log.index
max_connections=500
从:
service-id=2
master-host=192.168.1.103
master-user=repl
master-password=111111
master-port=3306
replicate-do-db=ld
log-bin=mysql-bin
作者 shadow_dance
bitsCN.com