1. 程式人生 > >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

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

重新 master 過去的 cati stop ica clas mas ids

配置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; these UUIDs must be different for replication to work