google-cloud-sql

How do I connect an iOS app to Google Cloud SQL?

别说谁变了你拦得住时间么 提交于 2019-12-13 03:59:43
问题 I had been building my database using Cloud Firestore because this was the easiest to implement. However, the querying capabilities of Firestore are insufficient for what I want to build, mostly due to the fact it can't handle querying inequalities on multiple fields. I need a SQL database. I have an instance of Google Cloud SQL set up. The integration is far harder than Firebase where you just need to add a Cocoapods Pod. From my research it looks like I need to set up a Cloud SQL proxy,

Unable to access Google Cloud SQL from GAE: “SQLSTATE[HY000] [2002] Unknown error 4294967295”

给你一囗甜甜゛ 提交于 2019-12-13 03:48:44
问题 I'm trying to create a program that shows the emails of teachers. The name and emails of these teachers are in a database. I took the sample code from Google and modified it, but it does not seem to work. I am also unable to resolve the error, as the message given is "Unknown error". How should I go about to debug / fix this error? I have restarted the sql server, and tried tweaking the code in many many ways, but it doesn't seem to want to give me my result :( I have added the gae app to the

Migrating to Google Cloud SQL using flyway, what jar files should be copied?

我的梦境 提交于 2019-12-13 03:25:32
问题 I am trying to migrate my database(MySQL) dump file Google Cloud SQL using flyway commandline tool. I have copied google_sql.jar to flyway-commandline-1.6/jars/ and set the following properties in flyway-commandline-1.6/conf/flyway.properties: flyway.driver=com.google.appengine.api.rdbms.AppEngineDriver flyway.url=jdbc:google:rdbms://myinstancename/devdb flyway.user=myusername flyway.password=mypassword However, this doesn't work and produces the following error: FlywayException: Error

An unknown error occurred

无人久伴 提交于 2019-12-13 02:47:44
问题 I have an android app which I would like to connect to my backend. The backend calls are made by PHP scripts while the database is built using mysql. I uploaded the app on hostagtor. I want to migrate that database on google cloud sql. Things I've done so far is: Created a bucket on google cloud storage Uploaded the sql dump in the bucket. Error: - When I am trying to upload it to the Google cloud sql, it throws an error! while importing into Clousql I wrote: gs://mybucket/abc.sql, while

Node.JS on Google App Enging with Cloud SQLError: connect ENOENT /cloudsql/

ぃ、小莉子 提交于 2019-12-13 00:47:10
问题 I've successfully deployed my app to Google App Engine. My database is up and running on Cloud SQL. I'm able to connect to the database no problems from my local machine by whitelisitng my dev machine's IP on the authorised networks in cloud SQL. However when I deploy to Production, I'm getting: Error: connect ENOENT /cloudsql/<my project id>:asia-south1:<my database instance name> My app.yaml file looks like this: runtime: nodejs env: flex manual_scaling: instances: 1 resources: cpu: 1

GAE PHP won't connect to Cloud SQL

久未见 提交于 2019-12-13 00:11:09
问题 Can't seem to get GAE PHP to connect to Cloud SQL, using mysqli, says: Unable to find the socket transport "unix" - did you forget to enable it when you configured PHP? I've authorized the app and made sure they're both in the same region i.e US any ideas would be great, thanks $mysqli = new mysqli(null, "USERNAME", "PASSWORD", "DATABASE", null, "/cloudsql/PROJECT_NAME:db2"); when i use :/cloudsql/PROJECT_NAME:db2 it's saying there's error with 'sock' When i use /cloudsql/PROJECT_NAME:db2

Move data from Google Cloud-SQL to Cloud Datastore

走远了吗. 提交于 2019-12-12 23:20:10
问题 I am trying to move my data from Cloud SQL to Cloud Datastore. There are a bit under 5 million entries in the SQL database. It seems like I can only move over 100,000 entities per day before I get a quota error. I can't figure out which exact quota I'm exceeding, however I have exponential backoff to make sure I'm not sending it too fast. Eventually it hits 5 minutes and the connection to the SQL server dies, but I don't think the writes per second quota is the problem. And I don't see any

Google CloudSQL instance non-responsive, how to get support?

狂风中的少年 提交于 2019-12-12 19:21:08
问题 When it comes to databases, we want to leave managing them to the pros, which is why we went for a managed solution in the form of a CloudSQL 2nd gen db instance. Today the instance stopped responding, I clicked restart, it has been restarting for hours and is not responding, I have tried clone the instance, also not responding. I don't know what else to do, our db is crippled and the service that uses it is down. These things happen, fine. The thing that shocked me is that I am unable to

ETIMEOUT error | Google Cloud SQL database with NodeJS

て烟熏妆下的殇ゞ 提交于 2019-12-12 16:07:51
问题 I have created a mysql database on google cloud that I'd like to access from a separate node web application (also running on google cloud). I am testing the connection locally on my computer first, and when I run the following code locally I can successfully establish a connection to my database and see the data in it. 'use strict'; // [START app] const express = require('express'); const bodyParser = require('body-parser'); const path = require('path'); const app = express(); const mysql =

Cloud SQL socket open failed with error: No such file or directory

…衆ロ難τιáo~ 提交于 2019-12-12 13:18:26
问题 I have a Django app on App Engine that connects to a Cloud Sql server. Recently, some of the requests started to raise the following error from MySQLdb : OperationalError: (2062, 'Cloud SQL socket open failed with error: No such file or directory') The error is raised sporadically so it's hard to debug. 回答1: Found the answer here. Stating from GAE 1.9.5, the number of concurrent db request per instance is limited to 12. The solution was to limit the number of concurrent requests per instance