google-cloud-sql

Metabase on Google App Engine

浪尽此生 提交于 2019-12-23 09:18:12
问题 I'm trying to set up Metabase on a gcloud engine using Google Cloud SQL (MySQL). I've got it running using this git and this app.yaml: runtime: custom env: flex # Metabase does not support horizontal scaling # https://github.com/metabase/metabase/issues/2754 # https://cloud.google.com/appengine/docs/flexible/java/configuring-your-app-with-app-yaml manual_scaling: instances: 1 env_variables: # MB_JETTY_PORT: 8080 MB_DB_TYPE: mysql MB_DB_DBNAME: [db_name] # MB_DB_PORT: 5432 MB_DB_USER: [db_user

google-cloud-sql - max_allowed_packet

。_饼干妹妹 提交于 2019-12-23 09:02:27
问题 I was moving a database to using Google Cloud SQL which previously had a max_allowed_packet of 20M. Currently the Google Cloud SQL default for max_allowed_packet is 1M. Is there any way to increase this variable to 20M? I have already tried the following: set global max_allowed_packet = 20971520; Which returns: Error Code: 1621. SESSION variable 'max_allowed_packet' is read-only. Use SET GLOBAL to assign the value and then: set global max_allowed_packet = 20971520; This returns the error:

Connecting to CloudSQL from App Engine (Second Generation CloudSQL) GO

落花浮王杯 提交于 2019-12-23 04:55:10
问题 Love the Stack, My first post out of complete frustration. Thanks for you comments! Created App Engine Project Created Second Generation MySQL Instance in my App Engine Project Created Database in the MySQL Instance In App Engine, I activate the --> Google Cloud Shell <--. ( I am working at a command prompt in my console.cloud.google.com) I have copied this basic GO program to connect to my MySQL instance. I build it and run it. go build mysqlexample.go ./mysqlexample I have not been able to

Can not edit SQL instance

倖福魔咒の 提交于 2019-12-23 04:22:30
问题 Recently migrated to Google Cloud SQL. Was working fine, but now I have lost the ability to manage authorized networks or edit the instance. I still have an option to delete though... Any ideas on how I can edit this instance and regain access to my data? Its not an access control problem (or I would not have delete option). Edit SQL instance option greyed out 来源: https://stackoverflow.com/questions/34402712/can-not-edit-sql-instance

how to decode chinese character from mysql with nodejs

孤街醉人 提交于 2019-12-23 04:19:13
问题 I am trying to query a comments table from mysql database by language. Whenever I query by language to fetch chinese comments it displays encoded gibberish characters. but whenever I use python to query, it works. Cloud Platform: Google Cloud SQL Database location: Google Cloud SQL Programming Language: Nodejs Below is my code // Require process, so we can mock environment variables const process = require('process'); const Knex = require('knex'); const express = require('express'); const app

Connection timed out: Nodejs Google App Engine to Cloud MySql

我是研究僧i 提交于 2019-12-23 03:48:25
问题 The code is very basic. Simple nodejs app using mysql. Error: connect ETIMEDOUT is received when code tries connecting to Google Cloud MySql server (second generation) on google app engine. However app is able to connect to MySql server from my local machine since IP address of my machine is whitelisted. App engine application and google cloud server belong to same project in google cloud console. So no extra permissions are required (?) So I'm failing to understand how to allow app engine to

Using Google Cloud SQL with App Engine [closed]

拜拜、爱过 提交于 2019-12-23 03:39:33
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I've searched through the suggested topics to find the answer to this question, but I got nothing. I'm doing a project at school which I would really like if I could get up and running with Cloud SQL and AppEngine. I'm on the "Using Google Cloud SQL with App Engine" at the moment, and it's stated in that guide

Using mysqli_connect() for Wordpress connection to Cloud SQL on Google App Engine

别来无恙 提交于 2019-12-23 02:52:50
问题 I am trying to run Wordpress on Google App Engine standard environment. I have configured a Cloud SQL for MySQL Second Generation instance and can access it using Cloud SQL Proxy with this command: cloud_sql_proxy -instances=my_project_id:us-central1:my_project=tcp:3306 The wp-config.php file: if (isset($_SERVER['GAE_ENV'])) { define('DB_HOST', ':/cloudsql/my_project_id:us-central1:my_project'); } else { define('DB_HOST', '127.0.0.1'); } Finally, I connect to the database using this: $dbConn

What is the correct way to enable query cache?

喜夏-厌秋 提交于 2019-12-23 02:52:15
问题 Based on the documentation, the super privilege is not supported, which means that the following query: SET GLOBAL query_cache_size = 1000000; results in an error message Access denied; you need (at least one of) the SUPER privilege(s) for this operation and does not allow us to set the query cache size. What's the correct way to accomplish the task? 回答1: Unfortunately, Cloud SQL does not support query caching and query_cache_size cannot be set. If you are experiencing performance issues, you

Configure Google Cloud SQL instance in Eclipse

点点圈 提交于 2019-12-23 02:38:07
问题 The name of my instance is domain.com:my_project:xyz So i actually completed the form like this : But i got the following error : Any ideas? Thank you so much! I just created it like 20 mins ago may be i need to wait but i doubt that it is the problem. 回答1: The instance name is "domain.com:my_project:xyz", not just "xyz". 来源: https://stackoverflow.com/questions/12681972/configure-google-cloud-sql-instance-in-eclipse