google-cloud-sql

Getting this error when trying to create a DB with rake db:create on google could SQL server

杀马特。学长 韩版系。学妹 提交于 2019-12-24 16:29:00
问题 I get this error when I run rake db:create root@guidir-smaill-group-1-po7p:/home/acc/site/site# RAILS_ENV=production rake db:create #<Mysql2::Error: Lost connection to MySQL server at 'reading initial communication packet', system error: 0> Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "pool"=>5, "username"=>"root", "password"=>"pass", "host"=>"173.144.230.182", "database"=>"dbname"}, {:charset=>"utf8", :collation=>"utf8_unicode_ci"} (If you set the charset manually,

Where is class definition for org/datanucleus/store/mapped/scostore/JoinSetStore

纵然是瞬间 提交于 2019-12-24 12:15:16
问题 I am trying to run Data Nucleus+JDO+google cloud sql. However I get a class not found for org/datanucleus/store/mapped/scostore/JoinSetStore. What Jar contains that? com.google.api.server.spi.SystemService invokeServiceMethod: null java.lang.ExceptionInInitializerError at com.example.e_math.NoteEndpoint.getPersistenceManager(NoteEndpoint.java:162) at com.example.e_math.NoteEndpoint.insertNote(NoteEndpoint.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect

How to set innodb_buffer_pool_size in mysql in google cloud sql?

只愿长相守 提交于 2019-12-24 10:59:29
问题 I can not set innodb_buffer_pool_size from the edit in the https://console.cloud.google.com . It just do not have this parameter. I also can not set innodb_buffer_pool_size with the sql: mysql> SET GLOBAL innodb_buffer_pool_size=2147483648; ERROR 1227 (42000): Access denied; you need (at least one of) the SUPER privilege(s) for this operation 回答1: It is not currently possible - we always set innodb_buffer_pool_size to something like 75% of machine RAM. In your case it seems you need more

Google Cloud SQL row size limit

浪子不回头ぞ 提交于 2019-12-24 07:16:49
问题 I was wondering what the row size limit in Google Cloud SQL was? For MySQL databases the limit is 65 Kb and I was wondering if that is the case for Google Cloud SQL as well. Link to MySQL row size limit page: http://dev.mysql.com/doc/refman/5.0/en/column-count-limit.html 回答1: Cloud SQL supports MySQL 5.5 and 5.6. The same MySQL row size limit applies. 来源: https://stackoverflow.com/questions/24769689/google-cloud-sql-row-size-limit

Connecting to Google SQL with a simple Java program (JDBC)

扶醉桌前 提交于 2019-12-24 04:39:08
问题 I have a simple Java program (not a web application/Google Engine/etc.). I went over every guide in Google Cloud SQL website, and I can't figure out how to connect to the server. Right now I have Class.forName("com.mysql.jdbc.Driver"); and connection = DriverManager.getConnection("jdbc:mysql://x:3306/y?user=root"); Where x is IP address of the instance (taken from the properties of the instance) and y is simply the instance ID. Am I doing something wrong? I also set a password for the root as

GCP MySQL server has gone away (Google SQL MySQL 2nd Gen 5.7)

痞子三分冷 提交于 2019-12-24 02:23:58
问题 We are running on Google Compute Engine/Debian9/PHP/Lumen/Doctrine2 <-> Google SQL MySQL 2nd Gen 5.7. Usually it works without hiccups, but we are now getting error messages, similar to the one below, with increasing frequency: Error while sending QUERY packet. PID=123456 PDOStatement::execute(): MySQL server has gone away Any idea why this is happening and how i would fix it? 回答1: As noted here, there is a list of cases which may be causing this error. A few are: You have encountered a

Postgres settings for Django on Google App Engine Flexi

喜欢而已 提交于 2019-12-23 21:23:34
问题 I am trying to setup django with postgres on app engine flexible environment. I followed the instructions from here: https://cloud.google.com/appengine/docs/flexible/python/using-cloud-sql-postgres My django settings: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': '<db-name>', 'USER': '<user-name>', 'PASSWORD': '<password>', 'HOST': '/cloudsql/<instance-connection-name>, 'PORT': '5432' }, } app.yaml: beta_settings: cloud_sql_instances: <instance-connection-name>

Cloud SQL Proxy and Insufficient Permission

故事扮演 提交于 2019-12-23 19:31:50
问题 I'm trying to deploy my Spring Boot/JHipster app on Google's Container Engine (GKE). I've figured out most things, but I'm having a problem with my database instance (a PostgreSQL instance running on Google Cloud SQL, with the Google SQL Proxy). I've followed the instructions here and here to set up my app. I've set up my PostreSQL instance in cloud, and created my app's database and user. I've created an SQL service with Cloud SQL Client role -- I grabbed the JSON key, and used it to create

Intermittent Communications link failure with Cloud SQL

断了今生、忘了曾经 提交于 2019-12-23 19:17:02
问题 I'm using jmeter to stress test a GAE web service which uses CloudSQL and I'm getting intermittent communications link failure exceptions. I've tried using direct connections and a connection pool, and I see exceptions in either scenario. The exceptions increase as the number of requests per second increase. Note that we are using the highest tier of cloud sql, D32 and the tests are well under the max 3200 connections. Here's a stack trace for reference: The last packet sent successfully to

How do I persist MySQL configuration variables in CloudSQL?

岁酱吖の 提交于 2019-12-23 16:14:15
问题 I can't seem to find any instructions or examples on how to set and persist MySQL configuration variables in Google's CloudSQL. The specific problem I'm encountering is that interactive sessions hang around for 8 hours by default and, if I get disconnected from an interactive session the thread remains open and then update transactions block until I kill the thread. The solution I found is this one: set global interactive_timeout=300; To terminate the interactive session after five minutes.