google-cloud-sql

2nd generation Google cloud SQL - App Engine

蓝咒 提交于 2019-12-30 09:42:35
问题 Delighted to see that you have rolled out 2nd generation cloud SQL in Beta. However, I see that it is not available yet to GAE projects. Can you estimate when this link will be enabled please? We are making some big infrastructural changes in our fancy system necessitated by the slowness of Generation 1 SQL, but will stick with cloud SQL if the change is not far off. 回答1: You can now connect to second generation Google Cloud SQL instances from App Engine apps. The connection string is

Table Values() Constructor for Updating Multiple Rows

怎甘沉沦 提交于 2019-12-25 13:15:16
问题 I just moved an app from a local instance where I used Postgres to a Google Compute Engine virtual instance where I'm using Google Cloud SQL, built on MySQL. Ever since the move, this SQL query is no longer working: "UPDATE events e SET e.photographers = up.photographers FROM (VALUES "+ value_pairs +") AS up(id, photographers) WHERE up.id = e.id" where value_pairs = (1,2) Here's the exact error I'm seeing: error running query { [Error: ER_PARSE_ERROR: You have an error in your SQL syntax;

Cloud SQL Wordpress DB connection always on

牧云@^-^@ 提交于 2019-12-25 02:37:27
问题 I have just managed to do this basic installation including the Batcache and the Gapp engine plugin for wordpress on Google cloud using Cloud SQL. I just saw that the total usage is 42 hours of the Cloud SQL instance. My site has no posts and is fairly new. There are no followers neither visitors. I am wondering why the SQL is always on ? I have it to activate only when requested rather than always on. Thoughts ? 回答1: If you set it to on demand it will only connect when its needed. After a

Connection issue connecting from PHP App engine instance to a Cloud SQL instance created in another App engine running Java Runtime

☆樱花仙子☆ 提交于 2019-12-25 02:25:32
问题 I am experiencing issues connecting to a Cloud SQL instance hosted in an App engine (Java Runtime). The connecting client is a PHP web application hosted in another Google app engine instance. Is it possible for an App engine instance to connect to a Cloud SQL in another instance? Basically, my setup is as follow: Google App Engine 1 (Java Runtime) installed with Cloud SQL instance hosts Google Endpoints and connects to Cloud SQL on this instance Google App Engine 2 (PHP Runtime) PHP script

Connecting PHP code on Compute Engine to Cloud SQL securely

早过忘川 提交于 2019-12-25 02:24:31
问题 I'm trying to connect drupal cms running on a Compute Instance to Cloud SQL database but every combination I try fails. I can connect to Cloud SQl from another server but I'm not sure what path the MySQL connection takes from my instance to Cloud SQL but also want to configure as secure as possible connection to and from the db server Here is the configuration I have Servers Cloud SQL with external IP address assigned. Also authorized external IP address of compute instance & Independent

How to configure Java Hibernate for Google Cloud SQL?

混江龙づ霸主 提交于 2019-12-25 01:49:00
问题 I am using Hibernate + Java + Jersey + MYSql and it's working fine on local machine. However I am unable to create a connection to MySql on Google Cloud. I think MYSql configuration and instance creation is fine on Google Cloud, but I am unable to pass all configuration through hibernate properties. See here what Google's sample code: // The configuration object specifies behaviors for the connection pool. HikariConfig config = new HikariConfig(); // Configure which instance and what database

using google app engine with JPA and cloud sql not returning any records using endpoints

主宰稳场 提交于 2019-12-25 00:57:17
问题 I have an Android project and an app engine connected project. I am using the following: JPA v2, App Engine 1.7.6, Java 1.7 compiler, Eclipse 4.2 Juno, EclipseLink 2.4.x I am using Cloud sql db. I am able to connect successfully in the JPA and DB Persective window and query data back ok. I have set up my app engine to have the SQL Development to be connected to my CLOUD Sql db. I have one table defined as follows: CREATE Table Test(codeid varchar(3) NOT NULL,codedesc varchar(20) NOT NULL

Separate SQL server speed too slow in Google Cloud

时间秒杀一切 提交于 2019-12-24 21:09:42
问题 I was moving all website to google cloud and encounter a performance problem. I set up a VM instance on Compute Engine and a Cloud SQL server. And connect the Joomla website from VM to Cloud SQL server using provided IP address. (Seems public IP) The performance is really slow compared to the website using local database inside the VM itself. So, my question is, is there a way to find local IP to connect to Cloud SQL since our web server is also on the Google Cloud infra itself. Or, the only

not able to connect google cloud sql from google app engine

一世执手 提交于 2019-12-24 20:30:15
问题 not able to connect google cloud sql from google app engine getting logMessage: "[ j~gcp-ws-203608/20180510t123822.409615356828549281].<stdout>: 2018-05-10 07:20:08.036 ERROR 1 --- [Request5396402F] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Exception during pool initialization. com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_112

How do I connect to a Cloud SQL instance using a service account?

依然范特西╮ 提交于 2019-12-24 18:51:59
问题 This seems like a question that's been answered before, but I've no luck with any other answers, so I'm opening a new question. I'm using a python script and create/configure a database and connect to it using the cloud_sql_proxy. The script runs beautifully if I don't provide a service account credential for cloud_sql_proxy, but if I do then I get this: 2017/08/18 15:34:12 using credential file for authentication; email=test-acc@project.iam.gserviceaccount.com 2017/08/18 15:34:12 Listening