Skip to content

add cloud-sql connector library#2231

Open
artemvovk wants to merge 1 commit into
zendesk:masterfrom
artemvovk:support_cloud_sql
Open

add cloud-sql connector library#2231
artemvovk wants to merge 1 commit into
zendesk:masterfrom
artemvovk:support_cloud_sql

Conversation

@artemvovk

@artemvovk artemvovk commented Nov 20, 2025

Copy link
Copy Markdown
Contributor

To expand support for other MySQL versions:
It should be possible to use
jdbc options to use it to connect to
Google Cloud SQL MySQLs:

?cloudSqlInstance=<INSTANCE_CONNECTION_NAME>
&socketFactory=com.google.cloud.sql.mysql.SocketFactory

this would not affect normal MySQL connections;

Had to set a few other GCP-related dependencies because of versioning conflicts

example run:

2025-11-21 23:05:49 INFO  MysqlSavedSchema - Restoring schema id 1 (last modified at Position[BinlogPosition[79171005-9d6a-11f0-8168-4201ac130029:1-2086], lastHeartbeat=0])
2025-11-21 23:05:49 INFO  BinlogConnectorReplicator - Configuring Cloud SQL socket factory for binlog replication: qa-project-example:us-central1:some-cloud-sql-mysql
2025-11-21 23:05:49 INFO  BinlogConnectorReplicator - Cloud SQL socket factory configured successfully for binlog replication
2025-11-21 23:05:49 INFO  BinlogConnectorReplicator - Setting initial gtid to: 79171005-9d6a-11f0-8168-4201ac130029:1-2122
2025-11-21 23:05:49 INFO  MaxwellHTTPServer - Maxwell http server starting
2025-11-21 23:05:49 INFO  MaxwellHTTPServer - Maxwell http server started on port 8080
2025-11-21 23:05:49 INFO  BinaryLogClient - Database version: 8.0.32-google (major=8, minor=0, mariadb=false)
2025-11-21 23:05:49 INFO  BinaryLogClient - Connected to localhost:3306 at 79171005-9d6a-11f0-8168-4201ac130029:1-2122 (sid:147481, cid:755440)
2025-11-21 23:05:49 INFO  BinlogConnectorReplicator - Binlog connected.
2025-11-21 23:05:50 INFO  Server - jetty-10.0.24; built: 2024-08-26T17:58:

@artemvovk artemvovk force-pushed the support_cloud_sql branch 5 times, most recently from 5480326 to 73ea0bc Compare November 21, 2025 22:38
it should be possible to use
jdbc options to use it to connect to
Google Cloud SQL MySQLs:

```
?cloudSqlInstance=<INSTANCE_CONNECTION_NAME>
&socketFactory=com.google.cloud.sql.mysql.SocketFactory
```

this would not affect normal MySQL connections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant