Fatal error: The slave I/O thread stops because master and slave have equal MySQL server UUIDs; the

Posted 会飞的小虫子

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Fatal error: The slave I/O thread stops because master and slave have equal MySQL server UUIDs; the相关的知识,希望对你有一定的参考价值。

配置mysql主从复制,遇到报错

 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

是因为主从服务器里auto.cnf中的server-uuid是相同的(服务器是复制过去的)。

把从服务器中的auto.cnf重命名或者删除,然后重新启动MySQL,会重新生成auto.cnf文件。

然后重新grant赋权,change master就ok了。

 

以上是关于Fatal error: The slave I/O thread stops because master and slave have equal MySQL server UUIDs; the的主要内容,如果未能解决你的问题,请参考以下文章

主从复制报错Fatal error:The slave I/O thread stops because master and slave have equal MySQL server UUIDs;

《MySQL系列-主从相关》MySQL从库Slave_IO_Running异常,Last_IO_Error: Got fatal error 1236 from master when reading

Fixing the "A fatal error occurred while trying to sysprep the machine" error

Fatal error occurred while trying to sysprep the..

zookeeper安装遇到的error和解决方案

解决Zend加密的PHP页面出现Fatal error: Incompatible file format: The encoded file has format major ID 1, where