Set up your MariaDB source
You must perform all setup tasks appropriate for your source environment before you can create a pipeline. If any of these tasks are not complete, the corresponding prerequisite checks will fail.
For all MariaDB environments
An administrator with the necessary privileges must create a user for use by the adapter and assign it the necessary privileges:
CREATE USER 'striim' IDENTIFIED BY '******'; GRANT REPLICATION SLAVE ON *.* TO 'striim'@'%'; GRANT REPLICATION CLIENT ON *.* TO 'striim'@'%'; GRANT SELECT ON *.* TO 'striim'@'%';
The caching_sha2_password authentication plugin is not supported in this release. The mysql_native_password plugin is required.
The
REPLICATION
privileges must be granted on*.*
. This is a limitation of MySQL.You may use any other valid name in place of
striim
. Note that by default MySQL does not allow remote logins by root.Replace
******
with a secure password.You may narrow the
SELECT
statement to allow access only to those tables needed by your application. In that case, if other tables are specified in the source properties for the initial load application, Striim will return an error that they do not exist.
On-premise MariaDB setup
See Activating the Binary Log.
On-premise MariaDB Galera Cluster setup
The following properties must be set on each server in the cluster:
binlog_format=ROW
log_bin=ON
log_slave_updates=ON
Server_id: see server_id
wsrep_gtid_mode=ON
Amazon RDS for MariaDB setup
Create a new parameter group for the database (see Creating a DB Parameter Group).
Edit the parameter group, change binlog_format to row and binlog_row_image to full, and save the parameter group (see Modifying Parameters in a DB Parameter Group).
Reboot the database instance (see Rebooting a DB Instance).
In a database client, enter the following command to set the binlog retention period to one week:
call mysql.rds_set_configuration('binlog retention hours', 168);