http://www.jb51.net/article/39935.htm使用rsync配置了大量mysql,省去了大量编译和配置的时间,随逐个修改master和slave服务器的my.cnf,后,发现数据不能同步
使用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即可
分享到:
相关推荐
代码如下:Last_IO_Error: Fatal error: The slave I/O thread stops because master and slave have equal MySQL server ids; these ids must be different for replication to work (or the –replicate-same-...
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 UUIDs This error generally occur when we clone the master to slaver. Delete auto.cnf of mysql, and then ...
mysql master-slave 主从配置的讲解
Master-Slave的数据库机构解决了很多问题,特别是read/write比较高的web2.0应用: 1、写操作全部在Master结点执行,并由Slave数据库结点定时(默认60s)读取Master的bin-log 2、将众多的用户读请求分散到更多的...
说明:keepalived一键部署master和slave节点 Usage: bash op.sh build master Deploy the master keepalived server. bash op.sh clear master Remove the master keepalived server. bash op.sh start master ...
使用mongodb时,出现“not master and slaveok=false”错误,原因是secondary不允许读写。 因为系统中mongodb做了主备,主备切换了,也可能导致这个问题。 把命令mongo –username=root –password=123456 –host=...
MySQL的Master Slave架构,手把手教你怎么操作,每一步操作都带有图
AXI4_master_slave源码对应分析 AXI4_master_slave源码对应分析 AXI4_master_slave源码对应分析
masterandslave-源码.rar
ahb2 master and slave agent implemented with UVM. download from github, pretty good
i2s串行线广泛用于音频通信中,这里包括了master和slave的代码.
Arduino上的MODBUS库,可与PLC等进行MODBUS通讯
Hadoop-2.2.0版本,虚拟机下建的三个centos系统:master,slave1,slave2.里边的配置文件都已经配好,只需要简单改下id,即可使用。不需要在进行解析。
modbus模拟器(可模拟Master和Slave)
Openstack中所有的组件均使用同一个mysql数据库,存在单点故障问题,如果mysql停止运行将影响整个云的稳定性;本文主要介绍如何构建基本的Mysql ha高可用环境,从而提高整个云的稳定性。
数据库-Mongodb的master-slave模式与master-master模式实验.rar