FLINK-CDC之sql方式的应用(mysql篇)
作者:互联网
1、mysql中创建表,注意,mysql要开启binlog,否则报错
CREATE TABLE `cdc_user` (
`id` BIGINT(11) NOT NULL,
`name` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_bin',
`type` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_bin',
`desc` TEXT NULL DEFAULT NULL COLLATE 'utf8mb4_bin',
`deleted` INT(11) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
)
COMMENT='cdc测试user类'
COLLATE='utf8mb4_bin'
ENGINE=InnoDB;
里面的数据
2、创建maven项目,导入依赖
<?xml version&#
标签:bin,CDC,utf8mb4,DEFAULT,FLINK,mysql,COLLATE,sql,NULL 来源: https://blog.csdn.net/sinat_23225111/article/details/122536564