zoukankan      html  css  js  c++  java
  • mysql server id一样导致报错

    (root@localhost) 16:03:38 [(none)]> show slave status G;
                    Last_IO_Errno: 1593
                    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-server-id option must be used on slave but this does not always make sense;please check the manual before using it)
    
    

    处理:
    由于是GTID模式,reset master

    清空 auto.cnf文件

    auto.cnf
    获取本机uuid

    (root@localhost) 16:10:06 [(none)]>  SELECT UUID(), UUID(), LENGTH(UUID()), CHAR_LENGTH(UUID()) G
    *************************** 1. row ***************************
                 UUID(): 108c8164-4797-11e8-afaa-0050569d16ce
                 UUID(): 108c8174-4797-11e8-afaa-0050569d16ce
         LENGTH(UUID()): 36
    CHAR_LENGTH(UUID()): 36
    1 row in set (0.00 sec)
    
    
  • 相关阅读:
    cookie
    接上一篇
    es6
    本地文件r如何上传到github上
    npm的使用说明
    被公司996下的程序媛心路历程
    起点2020
    ES5(基本包装类型)字符串的方法
    ES5数组的方法
    css伪类
  • 原文地址:https://www.cnblogs.com/gczheng/p/9323473.html
Copyright © 2011-2022 走看看