MySQL數(shù)據(jù)庫經(jīng)典錯(cuò)誤三 Last_IO_Errno: 1593(server-id沖突)
2018-11-08 20:14:39
23200
MySQL數(shù)據(jù)庫經(jīng)典錯(cuò)誤三 Last_IO_Errno: 1593(server-id沖突)
Last_IO_Errno: 1593(server-id沖突)
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)
這個(gè)報(bào)錯(cuò)出現(xiàn)之后,就能一目了然看到兩臺機(jī)器的 server-id 是一樣的。
在搭建主從復(fù)制的過程中,我們要確保兩臺機(jī)器的 server-id 是唯一的。這里再強(qiáng)調(diào)一下 server-id 的命名規(guī)則(服務(wù)器 ip 地址的最后一位+本 MySQL 服務(wù)的端口號)。
解決方法:在主從兩臺機(jī)器上設(shè)置不同的 server-id。