You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Flink CDC Issue Import (Jira)" <ji...@apache.org> on 2024/03/20 09:37:00 UTC

[jira] [Commented] (FLINK-34888) How to do MySQL to MySQL pipeline

    [ https://issues.apache.org/jira/browse/FLINK-34888?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17828887#comment-17828887 ] 

Flink CDC Issue Import commented on FLINK-34888:
------------------------------------------------

Date: Thu Mar 14 17:43:09 CST 2024, Author: [ihadoop|https://github.com/ihadoop]

you can create sink mysql table

```sql
CREATE TABLE mysql_sink (
  `id`  bigint ,
  `s_name` varchar(100)  ,
  `s_int` bigint,
 PRIMARY KEY(id) NOT ENFORCED 
) WITH (
 'connector' = 'jdbc',
'driver' = 'com.mysql.cj.jdbc.Driver',
'url' = 'jdbc:mysql://192.168.1.15:3306/cdc?serverTimezone=UTC&useSSL=false',
 'username' = 'root',
 'password' = '111111',
 'table-name' = 't_t'
);


insert into mysql_sink select * from cdc_table
```


> How to do MySQL to MySQL pipeline 
> ----------------------------------
>
>                 Key: FLINK-34888
>                 URL: https://issues.apache.org/jira/browse/FLINK-34888
>             Project: Flink
>          Issue Type: Bug
>          Components: Flink CDC
>            Reporter: Flink CDC Issue Import
>            Priority: Major
>              Labels: github-import
>
> Hi, I just found out demo of MySQL to Doris, But I want to do a whole sync database of MySQL to another MySQL. flink-cdc-pipeline-connector-mysql is just for source. How about the sink still is MySQL?
> Cloud anyone tell me some information to implement.
> ---------------- Imported from GitHub ----------------
> Url: https://github.com/apache/flink-cdc/issues/3140
> Created by: [ysmintor|https://github.com/ysmintor]
> Labels: 
> Created at: Wed Mar 13 19:04:58 CST 2024
> State: open



--
This message was sent by Atlassian Jira
(v8.20.10#820010)