master and slave have equal MySQL server UUIDs 解决方法
2013-07-23 00:52
645 查看
使用rsync配置了大量mysql,省去了大量编译和配置的时间,随逐个修改master和slave服务器的my.cnf,后,发现数据不能同步,
在slave服务器show slave status:
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> show variables like ‘server_id';
+―――――+――-+
| Variable_name | Value |
+―――――+――-+
| server_id | 3 |
+―――――+――-+
主从并不一样,排除该问题。
继续排查,找到原因在于,拷贝整个data目录,把auto.cnf文件也拷贝过来了,里面记录了数据库的uuid,每个库的uuid应该是不一样的。
[auto]
server-uuid=6dcee5be-8cdb-11e2-9408-90e2ba2e2ea6
解决办法,按照这个16进制格式,随便改下,重启mysql即可。
您可能感兴趣的文章:
相关文章推荐
- master and slave have equal MySQL server UUIDs 解决方法
- master and slave have equal MySQL server UUIDs 解决方法
- master and slave have equal MySQL server UUIDs问题解决
- Fatal error: The slave I/O thread stops because master and slave have equal MySQL server UUIDs
- Mysql 报错:master and slave have equal MySQL server UUIDs
- MySQL之——The slave I/O thread stops because master and slave have equal MySQL server UUIDs
- MySQL复制错误 The slave I/O thread stopsbecause master and slave have equal MySQL server UUIDs; these UUIDs must bedifferent for replication to work 解析
- mysql5.5.44 主从复制master and slave have equal MySQL server ids
- 【MySql】The slave I/O thread stops because master and slave have equal MySQL server UUIDs;
- 故障案例:主从同步报错Fatal error: The slave I/O thread stops because master and slave have equal MySQL server
- master and slave have equal MySQL server ids
- mysql故障master and slave have equal MySQL server UU
- master and slave have equal MySQL server ids
- Fatal error: The slave I/O thread stops because master and slave have equal MySQL server ids;
- 故障案例:主从同步报错Fatal error: The slave I/O thread stops because master and slave have equal MySQL server
- mysql 主从配置以及 slave I/O 启动失败解决 Fatal error: The slave I/O thread stops because master and slave have
- slave have equal MySQL server UUIDs
- slave have equal MySQL Server UUIDs原因及解决
- MongoDb的“not master and slaveok=false”错误及解决方法
- 【MongoDB】MongoDb的“not master and slaveok=false”错误及解决方法