danfengcao / binlog2sql

Parse MySQL binlog to SQL you want

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

server_id重复导致报错

xiaocy91 opened this issue · comments

        cursor.execute("SELECT @@server_id")
        self.server_id = cursor.fetchone()[0]

this code will report an error:
slave with uuid/ id as this slave has connected to the master.

mean that slave id is repeated.
why sever_id must be the same in binlog2sql ?
should the server id be unique?