You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This connector demonstrates how to capture changes to a MySQL database table (using CDC) and publish the change events to a Kafka topic using MySQL binary log replication.
4
+
5
+
## How to run
6
+
7
+
1. Set up your MySQL database with binary logging enabled
8
+
2. Configure environment variables for MySQL connection
The connector uses the following environment variables:
15
+
16
+
-**output**: Name of the output topic to write into.
17
+
-**MYSQL_HOST**: The IP address or fully qualified domain name of your MySQL server.
18
+
-**MYSQL_PORT**: The Port number to use for communication with the server (default: 3306).
19
+
-**MYSQL_DATABASE**: The name of the database for CDC.
20
+
-**MYSQL_USER**: The username that should be used to interact with the database.
21
+
-**MYSQL_PASSWORD**: The password for the user configured above.
22
+
-**MYSQL_SCHEMA**: The name of the schema/database for CDC (same as MYSQL_DATABASE).
23
+
-**MYSQL_TABLE**: The name of the table for CDC.
24
+
25
+
## Requirements / Prerequisites
26
+
27
+
- A MySQL Database with binary logging enabled.
28
+
- Set `log-bin=mysql-bin` and `binlog-format=ROW` in MySQL configuration.
29
+
- MySQL user with `REPLICATION SLAVE` and `REPLICATION CLIENT` privileges.
30
+
31
+
## Contribute
32
+
33
+
Submit forked projects to the Quix [GitHub](https://github.com/quixio/quix-samples) repo. Any new project that we accept will be attributed to you and you'll receive $200 in Quix credit.
34
+
35
+
## Open source
36
+
37
+
This project is open source under the Apache 2.0 license and available in our [GitHub](https://github.com/quixio/quix-samples) repo.
38
+
39
+
Please star us and mention us on social to show your appreciation.
0 commit comments