主服務器: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