创建数据源表:
CREATE TABLE ny_energy_data_source (
id BIGINT,
enterprise_id BIGINT,
use_time TIMESTAMP,
date_type INT,
attribute_id BIGINT,
PRIMARY KEY (`id`) NOT ENFORCED
) WITH (
'connector'='mysql-cdc',
'hostname'=‘xxxx’,
'port'=‘xxxx’,
'username'='logproxy@mysql#ob4x.admin',
'password'=‘xxxx’,
'database-name'='test_source',
'table-name'='t1_source'
);