flink-connector-jdbc
flink-connector-jdbc copied to clipboard
[FLINK-33069]Mysql and Postgres catalog support url extra parameters
Mysql and Postgres catalog support url extra parameters
CREATE CATALOG mymysql WITH( 'type' = 'jdbc', 'default-database' = 'test', 'username' = 'root', 'password' = 'xxx', 'base-url' = 'jdbc:mysql://xxx:53309', 'extra-url-param' = '?characterEncoding=utf8' );
If used in this way, the URLs of all tables obtained from this catalog are: jdbc:mysql://xxx:53309?characterEncoding=utf8