參考鏈接:
查看從庫狀態:
show slave status\G;
所遇問題:
1、The slave I/O thread stops because master and slave have equal MySQL server UUIDs
解決:
systemctl stop mysqld.service
mv /var/lib/mysql/auto.cnf /var/lib/mysql/auto.cnf.bak
systemctl start mysqld.service
參考:The slave I/O thread stops because master and slave have equal MySQL server UUIDs
2、Got fatal error 1236 from master when reading data from binary log: ‘Could not find first log file name in binary log index file’
解決:
stop slave;
reset slave;
start slave;
參考:Got fatal error 1236 from master when reading data from binary log