Home > Database > Mysql Tutorial > 关于MYSQL配置replicate出现1200错误_MySQL

关于MYSQL配置replicate出现1200错误_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:44:21
Original
1353 people have browsed it

bitsCN.com

 

主服务器: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
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template