Enabling CDC on your Database

The Debezium framework has some DB connectors to capture data changes (CDC), but to work properly, the DB should also be properly configured.

MySQL

For that Db should be enabled binary logging.

To check it enough to execute the following query -

show master status 
or 
for AWS - show variables like 'log_bin'

If we have any records in the result, it means - bin log is enabled and Debezium will handle data changes.

Some additional info - how to configure the Amazon instance can find here

Also, it should be ROW type

Postgres

     SHOW wal_level;

if wal_level does not equal logical execute command below:

     ALTER SYSTEM SET wal_level = logical;

and restart the DB instance.

MS SQL SERVER:

SQLSERVER agent should be enabled

For the docker image use the following

Execute the following query to check whether CDC is enabled or not.

If CDC is disabled, execute the following script:

Check in CDC enabled for the table

Then for EACH table execute the script provided below:

Then execute

Last updated