Questions tagged [cloud-sql-proxy]

243 questions
0
votes
1 answer

tunnel way between Cloud SQL and GCE wih cloud proxy process on gcp

I am wondering tunneling way during commnunication between Cloud SQL and Cloud Sql proxy process. https://cloud.google.com/sql/docs/mysql/sql-proxy I refer to this URL. I can see "he proxy uses a secure tunnel to communicate with its companion…
canerbis
  • 21
  • 1
0
votes
1 answer

cloud_sql_proxy x509 certificate has expired or is not yet valid . unable to connect

I have a Google Cloud SQL (MySQL) instance which I can connect from my Local development VM using mysql client. However, when I try to connect using the cloud_sql_proxy (needed for the python project setup), I get the error x509:certificate has…
Mirror Mirage
  • 1,287
  • 1
  • 8
  • 7
0
votes
1 answer

Postgres connection refused (via CloudSQL proxy) when doing rolling update Kubernetes

When I do a rolling update, I get exceptions from Sentry saying: DatabaseError('server closed the connection unexpectedly. This probably means the server terminated abnormally before or while processing the request.',...) I have two containers…
0
votes
1 answer

AppEngine app property not populating url

Followed the tutorial and my CloudSqlServlet.java init() function: try { ApiProxy.Environment env = ApiProxy.getCurrentEnvironment(); Map attr = env.getAttributes(); String hostname = (String)…
JY2k
  • 2,879
  • 1
  • 31
  • 60
0
votes
2 answers

Cloud sql proxy crashing on kubernetes

I had my cloud sql proxy previously working in a sidecar pattern, but found Cloud SQL Proxy in a Kubernetes cluster in the cloudsql-proxy repo, so I decided to break it out on it's own. I immediately had problems, on first connection the container…
kross
  • 3,627
  • 2
  • 32
  • 60
0
votes
1 answer

Unable to create connection with Google Cloud SQL

I'm trying to connect with cloud SQL but It always show error. HTTP ERROR 500 Problem accessing /cloudsql. Reason: Could not create connection to database server. Caused…
0
votes
0 answers

Access Cloud SQL from App Engine

I have the following Dockerfile: FROM gcr.io/google-appengine/openjdk ... EXPOSE 8080 WORKDIR /app ENTRYPOINT exec java $JAVA_OPTS $SERVICE_OPTS -jar Server.jar This starts a Spring Boot project, served by a Tomcat server. In order to start,…
0
votes
0 answers

Google Cloud SQL - Service Account

I am following the link below to create a Cloud SQL Proxy. https://cloud.google.com/sql/docs/mysql/connect-container-engine When I get to the step to create the service account, I am unable to see any Cloud SQL roles, even though I have a MySQL…
Meeraj
  • 41
  • 4
0
votes
0 answers

CloudSQL import speeds

I'm currently attempting to import a ~200Mb CSV file into a table of a Google CloudSQL instance. I'm connected through CloudSQL proxy, and things are going at a bit of a crawl... I initially attempted this with a direct import through MySQL…
0
votes
1 answer

How to connect WAMP to Google SQL with Cloud Proxy

On our development server and test linux boxes, we have been using Google SQL with Cloud Proxy for connections. Everything is working just fine. However, I need to setup a couple users with WAMP. (Windows 10 64bit Apache, PHP 7). I am not very…
srt8driver
  • 481
  • 4
  • 16
0
votes
1 answer

internal error when connecting to google cloud SQL

I designed a simple website using Flask and my goal was to deploy it on Google App engine. I started working on it locally and used google cloud sql for the database. I used google_cloud_proxy to open the port 3306 to interact with my GC SQL…
0
votes
0 answers

Connecting to Cloud SQL Proxy with PDO

I'm following this tutorial except that I do not wish to use Silex. I have set up a Cloud SQL Second Generation instance and a local proxy, which I can successfully connect to using SQL Workbench. This is the code I'm using to connect…
user2250471
  • 1,002
  • 3
  • 10
  • 23
0
votes
1 answer

Using CloudSQL Proxy to connect to Google CloudSQL

OK So I am trying to make a Java server that posts to a cloudSQL instance using cloudSQL Proxy and I am stuck. I started both the proxy and the server successfully on my local machine: ./cloud_sql_proxy -instances==tcp:3306…
-1
votes
1 answer

How to enable rewriteBatchStatements when using gcp cloud sql proxy?

We have a microservice deployed on GKE that connects to mysql db instance on GCP through cloud sql proxy. We are using spring jdbctemplate.batchUpdate to execute batch insert/update statements. When I append rewriteBatchStatements=true to jdbc url…
-1
votes
1 answer

SQLAlchemy error connecting to Google Cloud SQL with proxy

system: ubuntu Cloud sql instance: db Cloud sql user: admin Cloud sql pass: pass cloud sql db name: test cloud_sql_proxy installed and executed by ./cloud_sql_proxy -dir=/cloudsql -instances=prj:asia-northeast1:db…
CSSer
  • 2,131
  • 2
  • 18
  • 37
1 2 3
16
17