Skip to Content
DocumentationCDC Error GuidesMySQL: Enable Binary Logging

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.

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 as log-bin=E:\MySql_Logs\BinLog. Don’t include the file extension.
  • binlog_format - Set this parameter to ROW.
  • 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 to NONE.
  • binlog_row_image - Set this parameter to FULL.
  • log_slave_updates - Set this parameter to TRUE 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.