参考链接:
查看从库状态:
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
MySQL5.7主从复制故障排除
本文详细介绍了在LINUX服务器上配置MySQL5.7主从复制时可能遇到的问题及其解决方案,包括因服务器UUID相同导致的I/O线程停止和从二进制日志读取数据时出现的致命错误1236。通过修改配置文件和执行特定的SQL语句,可以有效解决这些问题。
1597

被折叠的 条评论
为什么被折叠?



