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)

posted @ 2018-07-17 15:08  貔貅小米豆  阅读(737)  评论(0编辑  收藏  举报