显然看到Slave_IO_Running 为NO 表示有问题;
到日志里查看,错误如下:
position 98 100121 17:09:03 [ERROR] The slave I/O thread stops because master and slave have equal MySQL server ids; these ids must be different for replication to work (or the --replicate-same-server-id option must be used on slave but this does not always make sense; please check the manual before using it). 100121 17:09:03 [Note] Slave I/O thread exiting, read up to log 'mysql-bin.000007', position 98
|
怀疑是server-id的原因。
于是如图:
显然, 42和88行都定义了server-id。 于是注释了88行。
操作 vi /etc/my.cnf,找到第88行, 将server-id注释掉
如图:
再次查询/etc/my.cnf
然后重启mysqld服务,service mysqld restart 问题即可解决
如下显示就表示正常:
留为笔记之用!
阅读(1742) | 评论(0) | 转发(0) |