mysql> stop slave;
mysql> reset slave;
mysql> change master to
mysql> change master to master_host='10.1.1.10',master_user='slave',master_password='123',master_port=3306,master_log_file='binlog.000002',master_log_pos=597;
mysql> start slave;
master_host:主机的IP地址
master_user:主机的user账号
master_password:主机的user账号密码
master_port:主机MySQL的端口号
master_log_file:二进制日志文件名称
master_log_pos:二进制日志文件位置
02-14
2305
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)