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.
报错信息:
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.

UUID相同解决办法:
- 在主机和从机的mysql下执行
show variables like '%server_uuid%';命令查看MySql的uuid值。 - 执行
find -name auto.cnf命令查看auto.cnf文件的位置。

- 执行
vim ./www/server/data/auto.cnf命令修改该文件的值(主从机的uuid值不同即可)。 - 执行
service mysqld restart命令重启主机和从机的MySQL服务
原因分析
主要原因使用
VMware克隆了主机,MySQL只改了配置文件,未更改uuid。
本文来自博客园,作者:AnNing21,转载请注明原文链接:https://www.cnblogs.com/AnNing21/p/17158697.html

浙公网安备 33010602011771号