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  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
hexadecimal; in decimal, this would be 21.
server_id (4) -- the slaves server-id
replication_rank (4) -- ignored
Copyright © 1997, 2014, Oracle and/or its affiliates. All rights reserved. Legal Notices