Master Slave Replication:
After configuring master slave replication when you check slave status on slave you got
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.
Cause: Because you might have copied data directory from master to slave, and same auto.cnf file exists on master and slave.
Solution: Stop mysql daemon on slave, remove auto.cnf file from data directory on slave , start slave, and check slave status. You will be fine.
Stop MySQL daemon on slave:
#systemctl stop mysqld
Delete auto.cnf file from the data directory:
# rm -rf auto.cnf
Start MySQL daemon:
#systemctl start mysqld
Comments
Post a Comment