MySQL
Supported Version
How to create a MySQL Load Node
-- MySQL extract node
CREATE TABLE `mysql_extract_table`(
`id` BIGINT,
`name` STRING,
`age` INT
) WITH (
'connector' = 'mysql-cdc-inlong',
'username' = 'inlong',
'password' = 'inlong',
'table-name' = 'user'
)
-- MySQL load node
CREATE TABLE `mysql_load_table`(
`id` BIGINT,
`name` STRING,
) WITH (
'connector' = 'jdbc-inlong',
'url' = 'jdbc:mysql://localhost:3306/write',
'username' = 'inlong',
'password' = 'inlong',
'table-name' = 'user'
)
-- write data into mysql
INSERT INTO mysql_load_table
Data Type Mapping