首页 > 数据库技术 > 详细

配置MySQL主从复制报错Last_IO_Error: Fatal 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

时间:2020-01-29 00:05:10      阅读:284      评论:0      收藏:0      [点我收藏+]


配置MySQL主从复制报错

Last_IO_Error: Fatal 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).

技术分享图片

? 修改配置文件 sudo vim /usr/my.cnf
? 当时配置从机的时候没改id,应该主机id是1,从机是2

技术分享图片

? 然后重启MySQL服务

sudo service mysql restart

? 问题解决!

配置MySQL主从复制报错Last_IO_Error: Fatal 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

原文:https://www.cnblogs.com/zhqin/p/12239329.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!