Skip to content
Discussion options

You must be logged in to vote

FYI, these two lines were not required:

%stg.quarkus.datasource.jdbc.additional-jdbc-properties.cloudSqlInstance=myproj-stg:us-central1:myproj-regional-primary
%stg.quarkus.datasource.jdbc.additional-jdbc-properties.socketFactory=com.google.cloud.sql.mysql.SocketFactory

Also had to set db-kind to mysql:
%stg.quarkus.datasource.db-kind=mysql
And also the URL needed our internal IP address to reach it:
%stg.quarkus.datasource.jdbc.url=jdbc:mysql://<internal_ip_to_cloudsql>/myproj_db_stg

Because it's using the serverPublicKey, it's just a regular mysql connection but SSL encrypted so no need for the socket connector...

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by kenyee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant