master and slave have equal MySQL server UUIDs问题解决
来源:互联网 发布:淘宝店铺模板购买 编辑:程序博客网 时间:2024/05/22 11:37
在搭建Mysql主从复制时候,在执行完相关操作以后,通过命令查看是否主从复制成功的时候
show slave status\G;
在“Slave_SQL_Running_State”中出现了“Fatal error: The slave I/O thread stopsbecause master and slave have equal MySQL server UUIDs; these UUIDs must bedifferent for replication to work.”这个错误。
当时以为是主节点服务器的UUID和从节点服务器网卡的UUID重复了,经过查看,发现他们并没有重复,然后重启服务器以后发现仍然没有成功。有点摸不着头脑,所以通过上网搜索。
发现原来是Mysql的一个配置文件auto.cnf里面记录了mysql服务器的uuid。
server_uuid:服务器身份ID。在第一次启动Mysql时,会自动生成一个server_uuid并写入到数据目录下auto.cnf文件里。
原来是这个uuid和主服务器的uuid重复了。(从节点服务器上的mysql安装包是直接从主节点服务器里面拷过来的),然后经过修改auto.cnf文件中的server-uuid,重启mysql服务器,再查看mysql从节点的状态,终于成功了。
0 0
- master and slave have equal MySQL server UUIDs问题解决
- 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 报错:master and slave have equal MySQL server UUIDs
- MySQL之——The slave I/O thread stops because master and slave have equal MySQL server UUIDs
- slave have equal MySQL server UUIDs
- Fatal error: 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 ids;
- 故障案例:主从同步报错Fatal error: The slave I/O thread stops because master and slave have equal MySQL server
- 故障案例:主从同步报错Fatal error: The slave I/O thread stops because master and slave have equal MySQL server
- MySQL Master/Slave Server 架設
- MySQL Master/Slave Server 架设
- mysql 主从配置以及 slave I/O 启动失败解决 Fatal error: The slave I/O thread stops because master and slave have
- mysql -server-5.6 install master and slave on ubuntu 14.04server
- linux配置mysql主从--master and slave
- Redis master and slave
- MySQL Master-Slave Replication
- MYSQL-master-slave实践
- React-Native学习指南
- PAT乙级1015
- 前向型神经网络之BPNN(附源码)
- Android夜间模式切换的方法
- Zookeeper初学篇
- master and slave have equal MySQL server UUIDs问题解决
- DFS&BFS小结
- test
- mybatis + spring 的基本配置步骤
- (笔记)位运算
- 《Spring in Action》第四版第一章《将 Spring 付诸实践》读书笔记(一)
- Python+PyQt,GUI操作
- Android ButterKnife框架的使用
- Python打印某范围内的素数