Change Data Capture Source
-
Start MySQL and Inspect CDC State:
docker compose up mysql cdc-cli- output when CDC metadata is not initialized:
[MISSING] cdc_log table
- output when CDC metadata is not initialized:
-
Initialize metadata
docker compose run --rm cdc-cli \ cdc-cli \ --mode=init \ --apply \ --config=/app/cdc-config.yaml \ --dsn=root:root@tcp(mysql:3306)/mydb -
Re-run Inspect (Safe to re-execute)
docker compose run --rm cdc-cli \ cdc-cli \ --mode=inspect \ --config=/app/cdc-config.yaml \ --dsn=root:root@tcp(mysql:3306)/mydb -
Start the Server:
docker compose up cdc-server