前几天在做其他事情的时候被我们的CTO把vmware中master虚拟机给干坏掉了,今天又在做mysql数据主从复制时,我只能重新搞一个master机了,图省事,就直接克隆了一个从机,然后就再做mysql主从复制,按照之前http://blog.csdn.net/juan0728juan/article/details/51673823这篇文章进行配置,到最后start slave时总是报错,并且show slave时发现Slave_IO_Running是NO状态,进入mysqld.log中查看错误,发现提示:
[ERROR] Slave I/O for channel '': 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. Error_code: 1593
这时候一查发现是auto.cnf中的server-uuid相同,赶紧看看,果然不错,改了主机的uuid,再重启数据库,ok了!!!