From f0241831780dddead284aac3a2d8eb13f4d5689c Mon Sep 17 00:00:00 2001 From: StrikeW Date: Tue, 10 Oct 2023 16:30:51 +0800 Subject: [PATCH 1/2] set mysql connection timezone to UTC --- .../src/main/resources/mysql.properties | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java/connector-node/risingwave-connector-service/src/main/resources/mysql.properties b/java/connector-node/risingwave-connector-service/src/main/resources/mysql.properties index b99c6dcf5971b..9ef5171149293 100644 --- a/java/connector-node/risingwave-connector-service/src/main/resources/mysql.properties +++ b/java/connector-node/risingwave-connector-service/src/main/resources/mysql.properties @@ -17,6 +17,9 @@ table.include.list=${database.name}.${table.name} include.schema.changes=${debezium.include.schema.changes:-false} database.server.id=${server.id} +# default to UTC +database.connectionTimeZone=UTC + name=${hostname}:${port}:${database.name}.${table.name} provide.transaction.metadata=${transactional:-false} From 424d2122a568b4e0c6ad128fb08aec44d9c5e80b Mon Sep 17 00:00:00 2001 From: StrikeW Date: Tue, 10 Oct 2023 19:26:29 +0800 Subject: [PATCH 2/2] update --- .../src/main/resources/mysql.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/connector-node/risingwave-connector-service/src/main/resources/mysql.properties b/java/connector-node/risingwave-connector-service/src/main/resources/mysql.properties index 9ef5171149293..6a269dc064a57 100644 --- a/java/connector-node/risingwave-connector-service/src/main/resources/mysql.properties +++ b/java/connector-node/risingwave-connector-service/src/main/resources/mysql.properties @@ -17,8 +17,8 @@ table.include.list=${database.name}.${table.name} include.schema.changes=${debezium.include.schema.changes:-false} database.server.id=${server.id} -# default to UTC -database.connectionTimeZone=UTC +# set connector timezone to UTC(+00:00) +database.connectionTimeZone=+00:00 name=${hostname}:${port}:${database.name}.${table.name}