CDC Setup
CDC - MariaDB Setup Documentation
How to setup CDC MariaDB
Prerequisites
To set up CDC between your MariaDB database and Peaka Big Table, you need:
- A MariaDB server of any version (most recently tested on version 11.4.3)
- Access to the MariaDB configuration file.
Setup Instructions
Setting up permissions
Peaka CDC requires a MariaDB user account. This user must have appropriate permissions on all databases where you want to set up cache through CDC.
- Create the MariaDB user:
- Grant the required permissions to the user:
- Finalize the user’s permissions:
Enabling the binlog
- Check whether the log-bin option is already on:
- If the binlog is OFF, add the properties in the following table to the configuration file for the MariaDB server:
Validating binlog row value options
Verify the setting of the binlog_row_value_options variable in the database. To enable the connector to consume UPDATE events, this variable must be set to a value other than PARTIAL_JSON.
- Check current variable value
Result
Variable_name | Value |
---|---|
binlog_row_value_options |
- If the value of the variable is set to PARTIAL_JSON, run the following command to unset it: