version: 1
name: mysql-cdc-to-jsonl
pipeline:
source:
type: mysql-cdc
config:
# No default database — the binlog is global; the mysql-cdc source reads
# all databases and filters client-side via include_tables/exclude_tables.
# This also keeps the `repl` user minimal (replication grants only).
connection_url: "mysql://repl:repl@localhost:3306"
server_id: 1001
start_position:
type: current
include_columns: true
idle_timeout: 30
batch_size: 1000
sink:
type: jsonl
config:
path: ./out/mysql_cdc.jsonl
state:
type: file
config:
path: ./state/mysql_cdc.json