配置MySQL主从复制报错Last_IO_Error: Fatal error: The slave I/O thread stops because master and slave have eq

Posted crazy_cat

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了配置MySQL主从复制报错Last_IO_Error: Fatal error: The slave I/O thread stops because master and slave have eq相关的知识,希望对你有一定的参考价值。

配置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-server-id option must be used on slave but this does not always make sense; please check the manual before using it). ```

  修改配置文件 sudo vim /usr/my.cnf
  当时配置从机的时候没改id,应该主机id是1,从机是2

  然后重启MySQL服务

sudo service mysql restart

  问题解决!

以上是关于配置MySQL主从复制报错Last_IO_Error: Fatal error: The slave I/O thread stops because master and slave have eq的主要内容,如果未能解决你的问题,请参考以下文章

Linux---MySQL主从配置相关报错合集

MySQL 5.6 主从报错一例

MySQL 5.6 主从报错一例

MySQL 主从复制

配置MySQL主从复制报错Last_IO_Error: Fatal error: The slave I/O thread stops because master and slave have eq

mysql主从复制报错