connector |
required |
(none) |
String |
Specify what connector to use, here should be 'mysql-cdc' . |
hostname |
required |
(none) |
String |
IP address or hostname of the MySQL database server. |
username |
required |
(none) |
String |
Name of the MySQL database to use when connecting to the MySQL database server. |
password |
required |
(none) |
String |
Password to use when connecting to the MySQL database server. |
database-name |
required |
(none) |
String |
Database name of the MySQL server to monitor. The database-name also supports regular expressions to monitor multiple tables matches the regular expression. |
table-name |
required |
(none) |
String |
Table name of the MySQL database to monitor. The table-name also supports regular expressions to monitor multiple tables matches the regular expression. |
port |
optional |
3306 |
Integer |
Integer port number of the MySQL database server. |
server-id |
optional |
(none) |
Integer |
A numeric ID of this database client, which must be unique across all currently-running database processes in the MySQL cluster.
This connector joins the MySQL database cluster as another server (with this unique ID) so it can read the binlog.
By default, a random number is generated between 5400 and 6400, though we recommend setting an explicit value. |
scan.startup.mode |
optional |
initial |
String |
Optional startup mode for MySQL CDC consumer, valid enumerations are "initial"
and "latest-offset".
Please see Startup Reading Positionsection for more detailed information. |
server-time-zone |
optional |
UTC |
String |
The session time zone in database server, e.g. "Asia/Shanghai".
It controls how the TIMESTAMP type in MYSQL converted to STRING.
See more here. |
debezium.min.row.
count.to.stream.result |
optional |
1000 |
Integer |
During a snapshot operation, the connector will query each included table to produce a read event for all rows in that table. This parameter determines whether the MySQL connection will pull all results for a table into memory (which is fast but requires large amounts of memory), or whether the results will instead be streamed (can be slower, but will work for very large tables). The value specifies the minimum number of rows a table must contain before the connector will stream results, and defaults to 1,000. Set this parameter to '0' to skip all table size checks and always stream all results during a snapshot. |
debezium.snapshot.
fetch.size |
optional |
(none) |
Integer |
Specifies the maximum number of rows that should be read in one go from each table while taking a snapshot. The connector will read the table contents in multiple batches of this size. |
debezium.* |
optional |
(none) |
String |
Pass-through Debezium's properties to Debezium Embedded Engine which is used to capture data changes from MySQL server.
For example: 'debezium.snapshot.mode' = 'never' .
See more about the Debezium's MySQL Connector properties |