Conduit connector for Mysql.
Run make build
to build the connector.
Run make test
to run all the unit tests. Run make test-integration
to run
the integration tests.
The Docker compose file at test/docker-compose.yml
can be used to run the
required resource locally. It includes adminer for
database management.
A source connector pulls data from an external resource and pushes it to downstream resources via Conduit.
Snapshot mode is the first stage of the source sync process. It reads all rows from the configured tables as record snapshots.
In snapshot mode, the record payload consists of opencdc.StructuredData, with each key being a column and each value being that column's value.
When the connector switches to CDC mode, it starts streaming changes from the obtained position at the start of the snapshot. It uses the row-based binlog format to capture detailed changes at the individual row level.
name | description | required | default value |
---|---|---|---|
url |
The connection URL of the MySQL, in the following format: [username[:password]@][protocol[(address)]]/dbname[?param1=value1&...¶mN=valueN] |
true | |
tables |
The list of tables to pull data from | true |
The connector is tested against MySQL v8.0. Compatibility with older versions isn't guaranteed.
- Binary Log (binlog) must be enabled.
- Binlog format must be set to ROW.
- Binlog row image must be set to FULL.
- Tables must have sortable primary keys.
For Snapshot and CDC modes, the following privileges are required:
- SELECT
- LOCK TABLES
- RELOAD
- REPLICATION CLIENT
- REPLICATION SLAVE
(Planned)