Thanks to visit codestin.com Credit goes to dev.mysql.com
The following sections provide detailed descriptions of the functions that enable reading the stream of replication events from a MySQL server binary log.