Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCP CloudSQL connection with unix socket #3146

Open
ggorge-etiqa opened this issue Feb 14, 2024 · 2 comments
Open

GCP CloudSQL connection with unix socket #3146

ggorge-etiqa opened this issue Feb 14, 2024 · 2 comments
Labels

Comments

@ggorge-etiqa
Copy link

Can you provide an example for connecting to GCP CloudSQL using unix socket?

@charmander
Copy link
Collaborator

Not sure why any part of this would be specific to the combination of pg and Cloud SQL, although it looks like Cloud SQL already has documentation at https://github.com/GoogleCloudPlatform/cloud-sql-nodejs-connector.

Why do you believe using a Unix socket should be possible for what looks like a remote database? Is that connection type documented for some other driver?

@alxndrsn
Copy link
Contributor

I think when connecting to a Cloud SQL instance you need to provide a connection string like /cloudsql/${GCP_PROJECT}:${CLOUDSQL_REGION}:${CLOUDSQL_INSTANCE_NAME}.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants