Questions tagged [cloud-sql-proxy]
243 questions
2
votes
1 answer
How to Connect EntityFramework Core to Multiple Google CloudSQL Instances Using CloudSQL Proxy?
I have 2 Postgres databases each in their own CloudSQL instance and a .NET web app running in GKE.
Goal: Connect web app utilizing EntityFramework Core to both CloudSQL instances using a single CloudSQL proxy.
I followed this setup and modified it…

msauce4
- 83
- 1
- 5
2
votes
1 answer
Configuring different pod configuration for different environments (Kubernetes + Google Cloud or Minikube)
I have a (containerized) web service talking to an external CloudSQL service in Google Cloud. I've used the sidecar pattern in which a Google Cloud SQL Proxy container is next to the web service and authenticates+proxies to the external CloudSQL…

user2697994
- 21
- 1
2
votes
0 answers
CloudSQL proxy credentials: invalid Json file
Am trying to use CloudSQL proxy with my container to Cloud SQL storage in GCP Kubernetes. As soon as I deploy my yaml I get the error “CrashLoopBackOff” for the pod and the “kubectl logs cloudsql-proxy” gives me the error that the credentials.json…

Madhavi Nori
- 599
- 3
- 6
2
votes
1 answer
GAE cloud SQL proxy use TCP sockets (instead of UNIX)
We're setting up a node application on GAE, and one of the libraries we're using doesn't play well with unix sockets.
The Cloud Proxy setup inside GAE uses unix sockets, I've googled and searched the google docs but can't find information on…

ChrisJ
- 2,486
- 21
- 40
2
votes
3 answers
Give proxy SQL access to Google Colaboratory
I'm trying to connect my Google Colaboratory Notebook to the Google Cloud SQL Instance I have, but I can't. My instance is only accessed with Cloud SQL Proxy, and I have no whitelisted any ip. What would be the steps to connect to it? I have also…

EyLuismi
- 21
- 2
- 2
2
votes
0 answers
Simple Client Connecting to Google Cloud SQL using Cloud SQL Proxy
I'm following this example of how to get wordpress running on GKE connected to Google Cloud SQL via the Google Cloud SQL Proxy:
https://cloud.google.com/sql/docs/mysql/connect-container-engine
Unfortunately, my wordpress pod is failing with a…

Traiano Welcome
- 783
- 2
- 12
- 24
1
vote
1 answer
How to connect to cloudSQL proxy from Prisma in Google Kubernetes Engine?
I have a microservices project which has:
user-service
post-service
Let's talk about the user-service to explain the problem:
After deploying the k8s objects like deployment that contains the user image, pods are created and each pod contains the…

John Mactavish
- 13
- 4
1
vote
1 answer
"/cloud_sql_proxy": no such file or directory: unknown
I want to move from cloud sql proxy version 1.11 to 2.6.0
I am using helm charts to deploy kubes in gcp
old helm yaml spec:
.....
image: "{{ .Values.cloudSQL.repository }}:{{ .Values.cloudSQL.tag }}"
imagePullPolicy: {{…

Shrivardhan
- 35
- 6
1
vote
1 answer
CloudSQL failed to login with root due to caching_sha2_password
I've a CloudSQL private instance I access using CloudSQL Auth Proxy running in a container hosted to a bastion host and listening from 127.0.0.1. The RDBMS is MySql 8. The instance was provisioned by Terraform.
I usually connect to this using…

Gabriele B
- 2,665
- 1
- 25
- 40
1
vote
4 answers
How to link Google Kubernetes Engine (GKE) and Cloud SQL database?
The code language I'm using is Terraform (Hashicorp Configuration Language or HCL) as the 'infrastructure as code' to automate the process of GCP creating everything for the server stack, and Helm charts for the M2 application. I've gotten as far…

radiorider
- 19
- 3
1
vote
1 answer
cloud-sql-proxy works with telent fails with mysql
I've got a GCP Cloud SQL instance, and I'm trying connect via the mysql client program on the shell via cloud-sql-proxy (version 2).
I start the proxy as such
cloud-sql-proxy project:regon:name -g
2023/04/29 23:15:30 Authorizing with gcloud user…

quickshiftin
- 66,362
- 10
- 68
- 89
1
vote
1 answer
GCP Cloud SQL Proxy - Cannot execute binary file: Exec format error
I have am error ; when I execute the sql proxy client .
(for connecting from host to GCP SQL https://cloud.google.com/sql/docs/postgres/sql-proxy)
this is the code
ubuntu@ubuntu22-10:~$ ./cloud_sql_proxy -dir=/cloudsql…

f0rs4k3n
- 61
- 3
1
vote
4 answers
Could anyone connect Cloud SQL with cloud sql proxy pod
I'm trying to setup a very basic wordpress setup as explained in this document: https://cloud.google.com/kubernetes-engine/docs/tutorials/persistent-disk
And cloud sql proxy is giving me certificate errors:
esonika@cloudshell:~ (esonika)$ k logs…

Esin Akdeniz
- 11
- 2
1
vote
2 answers
Connect to the CloudSQL Postgres from different project
I'm going to connect from the instance in Project-A(custom VPC) with CloudSQL Postgres in Project-B(default VPC). Documentation says that I need to peer these two VPC. The peering status in the "Active" state. In Project-A I also have…

Sharip Alikhanov
- 21
- 3
1
vote
0 answers
Can't login to MySQL DB with service account
I can login with my own user account which I added as an IAM user to the DB:
cloud_sql_proxy -enable_iam_login -instances=project:us-central1:myinstance=tcp:3306 -verbose
mysql -u "me" --host 127.0.0.1
But I cannot do this with a service…

red888
- 27,709
- 55
- 204
- 392