MySQL

    Supported Version

    How to create a MySQL Load Node

    1. -- MySQL extract node
    2. CREATE TABLE `mysql_extract_table`(
    3. `id` BIGINT,
    4. `name` STRING,
    5. `age` INT
    6. ) WITH (
    7. 'connector' = 'mysql-cdc-inlong',
    8. 'username' = 'inlong',
    9. 'password' = 'inlong',
    10. 'table-name' = 'user'
    11. )
    12. -- MySQL load node
    13. CREATE TABLE `mysql_load_table`(
    14. `id` BIGINT,
    15. `name` STRING,
    16. ) WITH (
    17. 'connector' = 'jdbc-inlong',
    18. 'url' = 'jdbc:mysql://localhost:3306/write',
    19. 'username' = 'inlong',
    20. 'password' = 'inlong',
    21. 'table-name' = 'user'
    22. )
    23. -- write data into mysql
    24. INSERT INTO mysql_load_table

    Data Type Mapping