Documentation Home
MySQL Internals Manual


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
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.