Property | Expected Value | Verification SQL Statement |
---|---|---|
log_bin | ON | SHOW VARIABLES LIKE 'log_bin'; |
binlog_format | ROW | SHOW VARIABLES LIKE 'binlog_format'; |
binlog_row_image | FULL | SHOW VARIABLES LIKE 'binlog_row_image'; |
User:
- a user has
RELOAD
orFLUSH_TABLES
privilege(s).
auto.create.topics.enable
should be true
docker compose up -d
curl -i -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
localhost:8083/connectors/ \
-d '{
"name": "source-connector",
"config": {
"connector.class": "io.debezium.connector.mysql.MySqlConnector",
"database.hostname": "mysql",
"database.port": "3306",
"database.user": "root",
"database.password": "123456",
"database.server.id": "184054",
"topic.prefix": "mysql",
"database.include.list": "coffee_shop",
"schema.history.internal.kafka.bootstrap.servers": "kafka:9092",
"schema.history.internal.kafka.topic": "schemahistory.coffee_shop"
}
}'
cd cdc-debezium-consumer
./gradlew run -d
curl -H "Accept:application/json" localhost:8083/
curl -s localhost:8083/connector-plugins
curl -H "Accept:application/json" localhost:8083/connectors/
curl -X DELETE localhost:8083/connectors/source-connector
docker exec -it cdc-debezium-consumer-kafka-1 /bin/bash
cd bin
kafka-topics.sh --list --bootstrap-server localhost:9092