(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)

相关文章:

  • 2021-10-15
  • 2022-12-23
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-26
  • 2022-03-07
猜你喜欢
  • 2022-12-23
  • 2021-04-13
  • 2021-10-06
  • 2022-01-10
  • 2021-12-13
  • 2021-10-28
  • 2022-12-23
相关资源
相似解决方案