How are we doing? Please help us improve Google Cloud. Take our short survey

Questions tagged [google-cloud-sql]

Google Cloud SQL is a service that allows you to create, configure, and use relational databases that live in Google's cloud. It is a fully-managed service that maintains, manages, and administers your databases, allowing you to focus on your applications and services.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

Unable to Switch Database at runtime in App engine

I am building a multi-tenant application where I want to keep a separate database for every tenant. For deployment, I am using Google App Engine and for Database I am using Google Cloud Sql. While ...
Shubhankar Tarkar's user avatar
1 vote
1 answer
29 views

Cloud Run and Cloud SQL Proxy Do Not Seem To Work Together

The service account used by cloud run has more than enough permissions. Cloud SQL Admin, Cloud Run Admin among many others not relevant here and I can give it full on Project Owner permissions and it ...
Nathan McKaskle's user avatar
0 votes
0 answers
15 views

GCP Pub/Sub Pull Subscription consumer with Jpa backed repos resulting in connection issues

Have a typical Springboot web application (simplying the names) with HelloController, HelloService, and HelloRepository. The HelloRepository is using JPA to fetch data from CloudSQL (Postgres). And ...
skjagini's user avatar
  • 3,142
0 votes
2 answers
39 views

Unable to connect to GCP cloud SQL from FAST API container using unix_socket

Running the FAST API image is throwing the following error. pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on None") I am using databases for async operations with '...
lakshman's user avatar
0 votes
1 answer
43 views

How to reduce the storage of a GCP cloud SQL instance that is connected with Upstream and Downstream streaming dataflow jobs?

We are using a Cloud SQL instance in GCP with 15(SSD) of data(Postgress). There are some streaming dataflow jobs that are writing data to the source schema of the Cloud SQL and there are some other ...
ANANTH's user avatar
  • 85
0 votes
0 answers
31 views

Cloud Run Cloud SQL VPC Connector

I am trying to connect the VPC that I created in my Gcloud, to connect Cloud Run with Cloud SQL. However, when connecting Cloud Run to the VPC, the connection menu is not visible.enter image ...
Breno Ribeiro's user avatar
0 votes
1 answer
34 views

Google Cloud Shell or Cloud SQL issue with postgres error permission denied for table Asked yesterday

I'm connecting to my Cloud SQL instance/postgres db using Cloud Shell and using my CLOUD SQL User account but getting "error permission denied for table" when trying to perform SELECT. I'm ...
user20719's user avatar
  • 211
1 vote
1 answer
31 views

Django app on Google App Engine not connecting to Google Cloud SQL

I've encountered an issue when deploying my Django application on Google App Engine and trying to connect it to Google Cloud SQL. The application works perfectly on my local system, but when deployed, ...
Ayush Agarwalla's user avatar
0 votes
1 answer
34 views

Google cloud SQL postgres error permission denied for table

I'm new to GCP and Cloud SQL. For the instance I'm trying to access the tables, I created a new User and selected "Build-in authentication". Its my understanding this User would have ...
user20719's user avatar
  • 211
1 vote
1 answer
27 views

Test google function using python connector

I'm wondering, how do I test a google function that connects to a Cloud SQL postgres instance? I mean the code has the connector and the connection and everything, I put a a query inside but how I can ...
DavidLinares's user avatar
2 votes
1 answer
44 views

google cloud function times out, apparently during database access

I've written a 2nd gen Google Cloud Function in Python that pulls data from an external API and should write it to a PostgreSQL database hosted in Google Cloud SQL. When I try to run the function, it ...
Tenocticatl's user avatar
0 votes
1 answer
42 views

Cloud Function cannot connect to Cloud SQL with "upstream request timeout"

As the title says my Cloud Function is logging "Finished with status: 'error'" with no other logs. I am using 1st gen Cloud Functions with Python 3.10. Below is my code which I have written ...
kyuden's user avatar
  • 240
1 vote
1 answer
21 views

How to connect firebase functions to a Cloud SQL instance in another project?

I have a Cloud SQL Postgres instance running in Project A. The Firebase Cloud Functions in Project A are able to connect to the Cloud SQL instance via unix sockets (i.e. /cloudsql/project-a:region:...
cjpete's user avatar
  • 541
0 votes
1 answer
25 views

store Cloud SQL credentials securely and efficiently to use in Cloud Function

I am trying to securely connect to a Cloud SQL (postgres) instance from my Cloud Function using Secrets Manager. However, I am confused as to what should be stored as a secret, whether multiple ...
kyuden's user avatar
  • 240
0 votes
1 answer
48 views

Import CSV file from Google Cloud Storage to Google Cloud SQL using GCP Workflow

I am writing a workflow to import csv into cloud sql (my_sql instance) from GCS bucket. I am using sql admin api v1 to perform import. Following is my workflow code: main: params: [event] steps: ...
MQ.'s user avatar
  • 365
1 vote
1 answer
64 views

Optimal PostgreSQL connection method with Python in serverless environment?

I have developed a Cloud Run service using Python with Flask that accepts incoming HTTP requests. Once a request is made, the payload is send to a class with a context manager. In that class, upon ...
Nuxurious's user avatar
1 vote
1 answer
46 views

Django Project Connect to Google Cloud SQL

I host Database and Django Application separately Server. I have a Google Cloud SQL (PostgreSQL) but I tried many ways to configure Database as Django document DATABASES = { 'default': { '...
Kuth's user avatar
  • 15
1 vote
3 answers
60 views

Google Cloud SQL cannot connect to Apache Superset

While trying to connect Apache Superset to Google Cloud SQL (PostgreSQL) I get this error: I also unsuccessfully tried to connect by SQLAlchemy URI string postgresql://username:password@host:port/...
Vadym Urupa's user avatar
0 votes
1 answer
59 views

Encrypted Connection between PowerBI on Premise Gateway and GCP CloudSQL Postgres Instance

I am trying to set up a PowerBI onPremise Gateway with a gcp CloudSQL-Postgres instance as a datasource. I am using the public IP address of a CloudSQL instance as a connection endpoint. In PowerBI I ...
Sholly's user avatar
  • 43
0 votes
0 answers
23 views

Connecting to Cloud SQL (MySQL) From IPv6 Fails

My ISP uses ipV6 so I'm unable to connect to my CloudSQL instance with MySqlWorkbench. I can connect via gcloud but only after installing a proxy recommended (and only used) by gcloud. I've been told ...
paiego's user avatar
  • 3,627
0 votes
1 answer
70 views

Google Cloud Composer failed to connect to Cloud SQL PostgreSQL database

I am creating a Google Cloud Composer to use Apache Airflow CloudSQLExecuteQueryOperator to sumbit a simple query to Cloud SQL PostgreSQL database. But it failed with the following error message: ...
Albert's user avatar
  • 11
1 vote
1 answer
82 views

Private Data Fusion instance can't write to private CloudSQL instance

I am learning about gcp and I got a question regarding the execution pipeline of Data Fusion. I have a private Data Fusion Instance and a private CloudSQL instance running postgres. I peered both of ...
Sholly's user avatar
  • 43
0 votes
0 answers
42 views

Java Spring boot app unable to connect to CloudSQL from Google App Engine

I have a spring boot app connecting to the Cloud SQL (MySQL 8) in the same project in the GCP. The app runs fine on the local machine. But the same app is unable to connect to the same database when ...
Adi's user avatar
  • 361
1 vote
1 answer
32 views

Public Cloud SQL, private Data Fusion instance

I am new to GCP, so I got some questions regarding Cloud SQL. From what I read I need to install a proxy once I want a private Data Fusion instance to connect to a private Cloud SQL instance. But do I ...
Sholly's user avatar
  • 43
0 votes
0 answers
24 views

Cloud sql partial replication

I went through https://cloud.google.com/sql/docs/sqlserver/replication to create partial replica only with 5-6 tables from a DB with >50 tables. Existing questions provide partial explanation - ...
Vish's user avatar
  • 1
0 votes
1 answer
118 views

How to connect to Postgres instance (managed service) running on SSL enabled Google Cloud Service using DBeaver?

When provided with server certificate, client certificate and client key Getting error The hostname 33.333.333.33 could not be verified by hostnameverifier PgjdbcHostnameVerifier.
Despicable me's user avatar
1 vote
1 answer
99 views

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 ...
John Mactavish's user avatar
0 votes
1 answer
49 views

NextJS AppEngine App Connection issue to CloudSQL Postgres when using Prisma

I am trying to use Next-Auth in my NextJS React application. I am using prisma for my ORM to talk to my CloudSQL PostgreSQL instance. I first tried Next-Auth without any Database and it was working ...
user2118100's user avatar
1 vote
0 answers
78 views

Gorm AutoMigrate table already exists but still tries to create it

So I'm using gorm in my go app on GCP. I have a connection to a Postgres cloud SQL database. I have the following code. func CreateDBConnection(cfg *config.Config) (*gorm.DB, error) { // Build the ...
Cate Daniel's user avatar
0 votes
0 answers
58 views

Postgres terminating connection because of crash of another server process

I have an issue with a daily job where there is a long running and memory heavy query executed in PostgreSQL 12.14 CloudSQL that usually takes 2h. About half way through the connection breaks with ...
Daria's user avatar
  • 51
-1 votes
1 answer
142 views

How to connect a MySQL database from Node.js Prisma running on Google Cloud Run to Cloud SQL?

I am currently working on a Node.js project utilizing Prisma to interact with a MySQL database. The application is deployed on Google Cloud Run, and the database resides in Google Cloud SQL. Here's a ...
Alex Aung's user avatar
  • 2,647
0 votes
0 answers
21 views

Is there is way to remove network restriction on Google cloud SQL Server?

I have an ASP.NET MVC website hosted on Godaddy, but it is not able to access the database. I have added IP of my hosting to Google cloud SQL Server networks, but still my website is not able to ...
LKC's user avatar
  • 186
0 votes
0 answers
22 views

Database export from google cloud sql to google cloud storage on GCP taking too long

I have postgres database of 1 TB data on google cloud sql region south-east-asia which I am exporting to google cloud storage bucket archival storage class resides in region US, its been more than 30 ...
Suffah Aftab's user avatar
0 votes
0 answers
19 views

Where do I find output JSON structure of gcloud command?

I am facing a challenge to find the structure of gcloud command output, especially JSON output for CloudSQL Instance. For example, in GCP console, I find an option to view the page output as JSON data ...
Saikumar's user avatar
0 votes
0 answers
17 views

Why do I need a "source replication instance" when replicating to CloudSQL?

When replicating from an external (on-prem) postgres database to CloudSQL, the documentation says I need to create a "source replication instance" in addition to the actual target database. ...
kpeek's user avatar
  • 3
2 votes
1 answer
42 views

Sqlproxy in GCE Virtual Machine can't connect to CloudSQL postgres database

I am trying to get Metbase runnning on a Google VM using a CloudSQL postgres instance as as database. In the startup script I have the following code to start a sqlproxy: sudo docker service create --...
Arthur de Vries's user avatar
0 votes
1 answer
69 views

Can we connect to postgres sql instance database using cloud function which is in another project?

I want to connect to Postgres Database which is another project through cloud function but I am not able to do so using vpc connector. I have done the below steps to set this up but still I am getting ...
Vaibhav's user avatar
  • 11
0 votes
1 answer
33 views

GCE: access SQL instance in a different project

I currently have a project with a compute instance, connected to a managed Cloud SQL database. When they set it up, they allocated the IP range for the SQL instance and I see it in the current project ...
Maxxer's user avatar
  • 1,038
0 votes
0 answers
52 views

Authentication error via IAM Authentication with GCP Cloud SQL

I am trying to authenticate my IAM user with my GCP Cloud SQL instance via ./cloud-sql-proxy. After the ./cloud-sql-proxy is ran and awaiting connections, I used VSC's SQLTools extension by Matheus ...
OnionCoder's user avatar
0 votes
2 answers
54 views

ModuleNotFoundError: No module named 'server', Run with Cloud SQL

from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.ext.declarative import declarative_base URL_DATABASE = 'mysql+pymysql://root:[email protected]:3306/...
Bintang007's user avatar
0 votes
0 answers
40 views

GCP: Connect cloud & Cloud SQL, running in two different projects

Currently we are trying to access Cloud SQL from Cloud Run via private IPs. The Cloud Run and Cloud SQL instances are in separate projects. Once the two VPCs are peered, VMs between the projects can ...
rahul gill's user avatar
0 votes
1 answer
91 views

How to use Google Cloud SQL for a Flask web application without using SQLAlchemy

My app is a Flask web server that has a postgresql backend. Up to now, I have been running setting up the DB on the same compute engine the server is on. I am transitioning my database from the ...
zahlawi's user avatar
  • 97
2 votes
0 answers
123 views

Cloud SQL memory leak after upgrading from 13.8 to Postgres 13.10

After upgrading from 13.8 to 13.10 (Cloud SQL Postgres) it seems that the memory usage drastically changed. Does anyone had a similar situation ? We then decided to increase the memory from 60 to ...
Jonathan Chevalier's user avatar
2 votes
1 answer
53 views

How to Connect to Cloud SQL using Node.js?

Connecting to Cloud SQL using Node.js is not always straightforward. Depending on the context, sometimes you have to connect to a Unix domain socket, allow-list IP addresses for TCP connections, run ...
ruyadorno's user avatar
  • 896
0 votes
0 answers
67 views

Datastream `POSTGRES_PUBLICATION_DOES_NOT_EXIST`

When I tried to create Data stream with Terraform according to the Google Cloud official blog[1], then I got the following error. Enter a value: yes module.test-db.google_datastream_stream.stream: ...
Ryo Matsuzaka's user avatar
0 votes
0 answers
54 views

Errors when executing queries using engine from sqlalchemy library

In my backend Python (Flask), (that is running on Google Cloud if that info helps) after some time of usage (during which connections to MySQL are used and made using sql alchemy engine) following ...
MilosPolo's user avatar
0 votes
1 answer
37 views

ERROR: could not open relation with OID 12303343

I am using cloudsql postgresql and have installed pglogical extension for logical replication between two data sources. However when I run following command in Dbeaver client I get the errors SELECT ...
SRJ's user avatar
  • 2,122
0 votes
0 answers
43 views

GCP: how do I restore a cloud sql instance from the latest backup using cloud functions?

I have two cloud sql instances in GCP: production and staging. My production instance is set to have a daily backup. Periodically, I restore the latest production backup to my staging instance. Right ...
Jonathan Lazarus's user avatar
0 votes
1 answer
61 views

Move a database from cloud SQL Server to BigQuery in one go

I have a database in cloud SQL Server. I need to move the database to BigQuery. Currently I'm using airflow to move one table at a time (downloading as .csv to gcs storage and then moving it to BQ). ...
Girish venkata's user avatar
0 votes
0 answers
26 views

not able to login to myadminphp.Server sent charset (255) unknown to the client

mysqli_real_connect(): Server sent charset (255) unknown to the client. Please, report to the developers I have no idea how to solve this error. i am using google sql cloud, where can i change the ...
abhijit chavan's user avatar

1
2 3 4 5
75