Documentation Home
MySQL 8.0 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 46.7Mb
PDF (A4) - 46.7Mb
PDF (RPM) - 42.1Mb
HTML Download (TGZ) - 10.8Mb
HTML Download (Zip) - 10.8Mb
HTML Download (RPM) - 9.3Mb
Man Pages (TGZ) - 224.3Kb
Man Pages (Zip) - 329.6Kb
Info (Gzip) - 4.2Mb
Info (Zip) - 4.2Mb
Excerpts from this Manual

28.7.21.2 mysql_binlog_fetch()

int mysql_binlog_fetch(MYSQL *mysql, MYSQL_RPL *rpl)

Description

Fetch one event from the replication event stream.

Arguments:

  • mysql: The connection handler returned from mysql_init().

  • rpl: The replication stream structure. After a successful call, the size member indicates the event size, which is 0 for an EOF event. For a non-EOF event, size is greater than 0 and the buffer member points to the event contents.

Return Values

Zero for success. Nonzero if an error occurred.

Errors