google-cloud-sql

Google Cloud SQL SSL fails peer certificate validation

孤街醉人 提交于 2019-12-19 10:04:52
问题 I have an issue using MySQL on PHP 5.6, and after three days of debugging PHP, OpenSSL, MySQLnd Drivers on PHP and trying out the mysql_client on an Ubuntu 14.04 machine, I have come to a conclusion: Google Cloud SQL SSL certificates will not work on PHP 5.6 and above. For a start, the Google Cloud is a great service, and modern cryptography is enforced throughout the Google ecosystem. However, I couldn't use it because of one little problem: Google Cloud SQL SSL Server certificates have

Getting Django 1.7 to work on Google App Engine

∥☆過路亽.° 提交于 2019-12-19 02:25:08
问题 Can anyone help to point us to instructions on how to get Django >1.5 working on Google App Engine? I have seen a number of people claim they have Django 1.6 working. We'd like to get 1.6 or 1.7 running. I have searched here for instructions on how to set this up. No luck so far. Update: In our development machine we have Django 1.7 installed (both /user/local and on virtualenv). However, if we modify GAE yaml to use Django 1.7 we get the following error messages: google.appengine.api.yaml

MySQL SUM json values grouped by json keys

☆樱花仙子☆ 提交于 2019-12-18 17:11:22
问题 Is it possible to calculate sum of json values grouped by json keys? Mysql version is 5.7.17 on Google cloud sql. Example_1: A short example of my point: col1 | col2 -----|----------------------- aaa | {"key1": 1, "key2": 3} -----|----------------------- bbb | {"key1": 0, "key2": 2} -----|----------------------- aaa | {"key1": 50, "key2": 0} SQL query should produce: col1 | col2 -----|----------------------- aaa | {"key1": 51, "key2": 3} -----|----------------------- bbb | {"key1": 0, "key2":

MySQL SUM json values grouped by json keys

谁都会走 提交于 2019-12-18 17:11:17
问题 Is it possible to calculate sum of json values grouped by json keys? Mysql version is 5.7.17 on Google cloud sql. Example_1: A short example of my point: col1 | col2 -----|----------------------- aaa | {"key1": 1, "key2": 3} -----|----------------------- bbb | {"key1": 0, "key2": 2} -----|----------------------- aaa | {"key1": 50, "key2": 0} SQL query should produce: col1 | col2 -----|----------------------- aaa | {"key1": 51, "key2": 3} -----|----------------------- bbb | {"key1": 0, "key2":

Start CloudSQL Proxy on Python Dataflow / Apache Beam

可紊 提交于 2019-12-18 17:01:49
问题 I am currently working on a ETL Dataflow job (using the Apache Beam Python SDK) which queries data from CloudSQL (with psycopg2 and a custom ParDo ) and writes it to BigQuery. My goal is to create a Dataflow template which I can start from a AppEngine using a Cron job. I have a version which works locally using the DirectRunner. For that I use the CloudSQL (Postgres) proxy client so that I can connect to the database on 127.0.0.1 . When using the DataflowRunner with custom commands to start

Connect Django to Google Cloud SQL

有些话、适合烂在心里 提交于 2019-12-18 13:38:40
问题 I'm trying to connect Django to the Google cloud SQL, working with python 2.7 and django 1.5 under windows. I went through the instructions on this page: https://developers.google.com/appengine/docs/python/cloud-sql/django My settings.py file has basic database settings of the form: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'INSTANCE': 'my_project:instance1', 'NAME': 'my_database', } } With of course a proper could SQL instance and a database created through the SQL

Import CSV file from Google Cloud Storage to Google Cloud SQL

不羁岁月 提交于 2019-12-18 13:38:05
问题 I am trying to import a csv file directly into Google Cloud SQL using the command below. LOAD DATA LOCAL INFILE "gs:/zuds/stg/ems/product_offering_fact/000002_0" INTO TABLE buydoc CHARACTER SET "utf8" FIELDS TERMINATED BY "^"; For some reason, it is returning an error like below. I have confirmed that the file exists. However, notice that the path in the error string has only one '/' Is this a bug or am I missing something obvious? ERROR 2 (HY000) at line 1: File 'gs:/zuds/stg/ems/product

How do I upload images to the Google Cloud Storage from PHP form?

ぃ、小莉子 提交于 2019-12-18 09:43:31
问题 I'm currently utilizing a php app to upload images to the Google cloud storage platform, however, unlike on my local server, I am having tremendous trouble figuring out how to make this work. Here is exactly what I am trying to do: Write the Path of the image to my Google cloud SQL Actually upload the image to the Google cloud storage platform write a script calling on the image, from the saved SQL path, to then post to my site Can anyone point in the right direction? Thanks! 回答1: Something

“TLS requested but server does not support TLS” error with Google Cloud SQL (2nd generation) from Google App Engine?

狂风中的少年 提交于 2019-12-18 09:40:49
问题 I'm running into an issue in re-using my connection string (resolved here ... Cannot connect to Google Cloud SQL using SSL + Golang from Google App Engine ...) from connecting to a Google Cloud SQL generation one instance while trying to connect to a generation two instance. I'm receiving this error: TLS requested but server does not support TLS I can't figure out how to get around this, and the documentation is pretty scarce. I caught the fact that Instance connection name follows a

Changing Permissions of Google Container Engine Cluster

有些话、适合烂在心里 提交于 2019-12-17 18:56:26
问题 I have been able to successfully create a Google Container Cluster in the developers console and have deployed my app to it. This all starts up fine, however I find that I can't connect to Cloud SQL, I get; "Error: Handshake inactivity timeout" After a bit of digging, I hadn't had any trouble connecting to the Database from App Engine or my local machine so I thought this was a little strange. It was then I noticed the cluster permissions... When I select my cluster I see the following;