当前位置:Gxlcms > 数据库问题 > 配置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

配置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

时间:2021-07-01 10:21:17 帮助过:47人阅读


配置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 equal MySQL server ids; these ids must be different for replication to work

标签:use   png   art   img   replicat   make   this   service   using   

人气教程排行