Registry / database / mysql-binlog-connector-java

mysql-binlog-connector-java

JSON →
library0.21.0javamavenunverified

MySQL Binary Log connector for reading and processing MySQL binlog events.

<dependency> <groupId>com.github.shyiko</groupId> <artifactId>mysql-binlog-connector-java</artifactId> <version>0.21.0</version> </dependency>
INSTALL
IMPORT
SIG · MYSQL-BINLOG-CONNE
M
mysql-binlog-connector-java
databasejavav0.21.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BinaryLogClient
com.github.shyiko.mysql.binlog.BinaryLogClient

Connects to a MySQL server and listens for binary log events.

import com.github.shyiko.mysql.binlog.BinaryLogClient; import com.github.shyiko.mysql.binlog.event.Event; public class MyBinlogListener { public static void main(String[] args) throws Exception { BinaryLogClient client = new BinaryLogClient("localhost", 3306, "user", "password"); client.registerEventListener(event -> System.out.println(event)); client.connect(); } }
Debug
Known issues
gotchaMySQL binlog connector requires MySQL server with binary logging enabled and appropriate privileges.
fix
Enable binary logging in MySQL configuration (log-bin) and grant REPLICATION SLAVE privileges.
affects: all
Upgrade
Version history
0.21.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
mysql-binlog-connector-java — mvn dependency:get mysql-binlog-connector-java · libregistry