标题: Fatal error: The slave I/O thread stops because master and slave have equal M... [打印本页] 作者: 郑全 时间: 2018-1-10 22:41 标题: Fatal error: The slave I/O thread stops because master and slave have equal M... 主从复制,备库show slave status ,报以下错误:
Fatal error: The slave I/O thread stops because master and slave have equal MySQL server UUIDs; these UUIDs must be different for replication to work.
原因分析:
mysql 5.6的复制引入了uuid的概念,各个复制结构中的server_uuid得保证不一样,但是查看到直接copy data文件夹后server_uuid是相同的,show variables like '%server_uuid%';
解决方法:
找到data文件夹下的auto.cnf文件,修改里面的uuid值,保证各个db的uuid不一样,重启db即可