zoukankan      html  css  js  c++  java
  • 搭建MySQL主从复制时遇到的一个错误

    在搭建MySQL主从复制时,从服务器的Slave_IO_Running状态一直是No,看了眼错误日志,发现报的是这个错误。

    [ERROR] Slave I/O for channel '': 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. Error_code: 1593
    

    就是说主从之间的UUID不能相同,这就明白了,因为我的主从服务器的系统是从同一个镜像得到的,主从的mysql的UUID自然是和镜像上的mysql的UUID一样的。
    解决方法:

    [root@mysql-slave ~]# find / -name auto.cnf
    /data/mysql/auto.cnf
    [root@mysql-slave ~]# rm -rf auto.cnf
    [root@mysql-slave ~]# systemctl restart mysqld
    
  • 相关阅读:
    3.21上午
    3.17下午
    2017.4.14-morning
    2017.4.13-afternoon
    2017.4.13-morning
    2017.4.12-afternoon
    2017.4.12-morning
    2017.4.11-afternoon
    2017.4.11-morning
    2017.4.10-afternoon
  • 原文地址:https://www.cnblogs.com/CharrammaBlog/p/14583535.html
Copyright © 2011-2022 走看看