MySQL: Enable Binary Logging
Binary logging is required for us to capture CDC changes. Please follow the steps below to enable binary logging on the database.
Self-Hosted Databases
To enable binary logging, configure the following parameters in MySQL’s my.ini
(Windows) or my.cnf
(UNIX) file:
server_id
- Set this parameter to a value of 1 or greater.log-bin
- Set the path to the binary log file, such aslog-bin=E:\MySql_Logs\BinLog
. Don’t include the file extension.binlog_format
- Set this parameter toROW
.expire_logs_days
- Set this parameter to a value of 1 or greater. To prevent overuse of disk space, we recommend that you don’t use the default value of 0.binlog_checksum
- Set this parameter toNONE
.binlog_row_image
- Set this parameter toFULL
.log_slave_updates
- Set this parameter toTRUE
if you are using a read-replica as a source.
Once binary logging is enabled, please restart the CDC process via the Connection page → CDC tab.