google-cloud-sql

Does google app engine with mysql (Cloud SQL) support GIS?

不问归期 提交于 2019-12-21 17:33:03
问题 I have tried to find some documentation on this on the app engine and cloud sql sites, but can't find anything referring to it either way. I know that you can perform GIS queries on their custom sql option, and I know mysql supports GIS out of the box, but I also know it requires some C libraries which there is limited support for. More particularly I am interested to know if geo-django using mysql supports gis using an app engine/cloud sql combination. (Or maybe if their custom offering

Local MySQLdb connection fails with AttributeError for paramstyle when running GAE development server

*爱你&永不变心* 提交于 2019-12-21 03:24:06
问题 I'm building a GAE Flask application with Flask-Alchemy, against Cloud SQL, and running dev_appserver to test the application as I build it. However, if I set the SQLALCHEMY_DATABASE_URI to a mysql+gaerdbms:///appname?instance=instanceid URL, I get the following traceback when trying to call db.create_all() : Traceback (most recent call last): # earlier lines omitted for brevity File "/Project/app/foo.bar/foo/bar/admin/__init__.py", line 26, in init_db db.create_all() File "/Project/app

Export from Google BigQuery into CloudSQL?

烂漫一生 提交于 2019-12-20 12:27:48
问题 I want to dump data from BigQuery (i.e. reports) into a CloudSQL database, what is the best way to achieve this programatically? I realise I could do this manually by running a BigQuery query, downloading it as a CSV, then uploading it through the Cloud console, but I want to do this programatically, preferably in Python/SQL. 回答1: If you would like to dump entire tables, you can use a combination of the BigQuery and Cloud SQL APIs to achieve this. The BigQuery documentation has an API example

Export from Google BigQuery into CloudSQL?

血红的双手。 提交于 2019-12-20 12:27:01
问题 I want to dump data from BigQuery (i.e. reports) into a CloudSQL database, what is the best way to achieve this programatically? I realise I could do this manually by running a BigQuery query, downloading it as a CSV, then uploading it through the Cloud console, but I want to do this programatically, preferably in Python/SQL. 回答1: If you would like to dump entire tables, you can use a combination of the BigQuery and Cloud SQL APIs to achieve this. The BigQuery documentation has an API example

Google Cloud SQL is slow

。_饼干妹妹 提交于 2019-12-20 10:03:27
问题 I have a D0 size Cloud SQL instance. When I run a simple select * from table which has around 500 rows, it takes on average 100 ms to execute (as reported by SQL Prompt). Whereas on my local instance of MySQL 5.5, it takes only 1 ms. My dev machine has 2.9GHz dual-core Intel Core i7 and 8GB 1600MHz memory. I've read in an FAQ that performance of db depends on the size - larger instances have more RAM and CPU. Is this reasonable to expect performance issues resolved with larger instance size?

How to connect to Google Cloud SQL with go-sql-driver/mysql on App Engine?

感情迁移 提交于 2019-12-20 04:12:45
问题 I'm using the go-sql-driver/mysql driver in Go on App Engine to connect to a Cloud SQL instance like this: import ( "database/sql" _ "github.com/go-sql-driver/mysql" ) db, dbErr := sql.Open("mysql", "root@cloudsql(project:instance)/database" ... pingErr := db.Ping() but I get " permission denied " in pingErr . Of course, I've checked my app is authorized in the Cloud SQL console under "Access Control" per the docs. I also tried adding a MySQL user with privileges and using user:password in

Connecting Google Cloud SQL with Wordpress on Google Compute Engine

别等时光非礼了梦想. 提交于 2019-12-20 02:56:07
问题 I've been running a successful Wordpress install on Google Compute Engine with Nginx, Php-fpm and Mysql. I noticed you can also run Wordpress on App Engine with a Cloud SQL connection as mentioned here https://developers.google.com/appengine/articles/wordpress?hl=en I want to use Wordpress on Compute Engine with the db running on Cloud SQL. On AppEngine, you need to put the following lines in the wp-config.php file if(isset($_SERVER['SERVER_SOFTWARE']) && strpos($_SERVER['SERVER_SOFTWARE'],

Connecting to multiple CloudSQL instances using Cloud sql proxy?

只愿长相守 提交于 2019-12-19 17:44:50
问题 I'm attempting to use the cloud sql proxy to connect to 2 different cloud sql instances... In the docs I found a line about Use -instances parameter. For multiple instances, use a comma-separated list. but not sure how to make that look. https://cloud.google.com/sql/docs/sql-proxy. I'm using Google Container engine, and with a single CloudSQL instance it works great: - name: cloudsql-proxy image: b.gcr.io/cloudsql-docker/gce-proxy:1.05 command: ["/cloud_sql_proxy", "--dir=/cloudsql", "

access denied (“java.lang.RuntimePermission” “modifyThreadGroup”)

依然范特西╮ 提交于 2019-12-19 10:45:34
问题 I'm developing a server application using Google App Engine and Google Cloud SQL. I have a problem when trying to connect to the Cloud SQL when running the server on my local machine. I get the error: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup") Here is the servlet code: package com.example.example; import com.google.appengine.api.utils.SystemProperty; import java.io.IOException; import java.io.PrintWriter; import java.sql.Connection;

Using Google Cloud SQL during Java appengine development (instead of local MySQL instance)

南楼画角 提交于 2019-12-19 10:18:24
问题 Instead of using a local MySQL instance during Java appengine development, i (sometimes) want to use a real Google Cloud SQL instance (for example; to debug with the real thing). It is possible to open a JDBC connection from IntelliJ => Databases, but when i'm using this URL in my Maven POM its not working... In this situation i'm already using the appengine driver instead of the local mysql connector. Why isn't this working? How should i configure my POM? I'm using the following