Documentation Home
MySQL Internals Manual
Download this Manual
EPUB - 1.2Mb


Registers a slave at the master. Should be sent before requesting a binlog events with COM_BINLOG_DUMP.


register a slave at the master


1              [15] COM_REGISTER_SLAVE
4              server-id
1              slaves hostname length
string[$len]   slaves hostname
1              slaves user len
string[$len]   slaves user
1              slaves password len
string[$len]   slaves password
2              slaves mysql-port
4              replication rank
4              master-id

Note that the value of [15] is hexadecimal; in decimal, this would be 21.


OK_Packet or ERR_Packet

User Comments
Sign Up Login You must be logged in to post a comment.