Skip to main content
To use the MySQL CDC features, we need to create a MySQL user account with appropriate privileges on all databases for which RisingWave will read from.

Create a user and grant privileges

  1. Create a MySQL user with the following query.
  1. Grant the appropriate privileges to the user.
For MariaDB 10.5 and later, BINLOG MONITOR is the renamed equivalent of REPLICATION CLIENT. You can grant it instead:
RisingWave accepts either privilege when validating a MariaDB CDC source.
  1. Finalize the privileges.

Enable the binlog

The binlog must be enabled for MySQL replication. The binary logs record transaction updates for replication tools to propagate changes.
  1. Check if the log-bin is already on.
  1. If it is OFF, configure your MySQL server configuration file, my.cnf, with the following properties described below. Restart your MySQL server to let the configurations take effect.
  1. Confirm your changes by checking the log-bin again.
See Setting up MySQL for more details.