mysql主从的复制Slave_IO_Running: No Slave_SQL_Running: Yes

我在srtart slaves;后发现Slave_IO_Running: No             Slave_SQL_Running: Yes

然后:

Last_IO_Error: 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是的datadir下的auto.cnf文件被直接复制过来了,导致UUIDs相等,所以无法开启slave;我们只要保证auto.cnf文件里的内容不一致就行了

 

你可能感兴趣的:(mysql)