google-cloud-sql

Google Cloud SQL SSL fails peer certificate validation

丶灬走出姿态 提交于 2019-12-01 08:13:22
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 impossible common names. Google Cloud SQL Server (or peer) certificates have a Common Name (CN) that looks

Cloud SQL instance connection working locally, but not on App Engine

眉间皱痕 提交于 2019-12-01 08:11:52
I am trying to host an API implemented as a Node.js app on Google Cloud App Engine. The database that the API utilizes is a PostgreSQL 9.6 database which is hosted with a Cloud SQL instance. The database is connected to the Node.js API through Knex . When hosted on App Engine, the API endpoints that do not require any contact with the database work fine. However, when the database needs to be contacted to complete the API call, the following error appears in the logs: Unhandled rejection TimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a

Importing Data to Google Cloud SQL via CSV

限于喜欢 提交于 2019-12-01 08:06:09
问题 Google Cloud SQL restricts use of LOAD DATA INFILE in SQL statements. I'm trying to make a feature that would allow users to batch upload user data to my web app so they don't have to make each entry one by one. How would I go about accomplishing this within the restrictions of GAE PHP and Cloud SQL ? Update: Users of my app are able to manage a list of students. I want my users to be able to submit a CSV file and have that input into their student database. I can't use sync or MySQL

2nd generation Google cloud SQL - App Engine

六月ゝ 毕业季﹏ 提交于 2019-12-01 05:23:30
Delighted to see that you have rolled out 2nd generation cloud SQL in Beta. However, I see that it is not available yet to GAE projects. Can you estimate when this link will be enabled please? We are making some big infrastructural changes in our fancy system necessitated by the slowness of Generation 1 SQL, but will stick with cloud SQL if the change is not far off. Cal S You can now connect to second generation Google Cloud SQL instances from App Engine apps. The connection string is slightly different from first generation instances (docs) . Open your SQL instance in the cloud console.

How do I connect to a Google Cloud SQL database using CodeIgniter?

我只是一个虾纸丫 提交于 2019-12-01 01:57:32
My CodeIgniter app on Google App Engine is not able to connect to my database on Google Cloud SQL. I tried so many things. My site loads when I leave database username, password & database name empty but, pages that have database calls show an error. It says that no database was selected. I noticed that my database was not created and created a new database and a user with all privileges. I entered this details in my app and now, it doesn't even connect to the database server. No pages serve. When I remove only the username & password fields in database.php, it connects to the database server

Google Cloud SQL is now Read Only

独自空忆成欢 提交于 2019-12-01 00:41:41
We have an issue With Google Cloud SQL (Second Generation). Most inserts are failing with the following error: The MySQL server is running with the --read-only option so it cannot execute this statement. We have made no changes. This suddenly started happening. Tried restarting the Google Cloud SQL instance but it had no effect. Any suggestions on how we might fix quickly? Google have fixed the problem. Their response was: We had a problematic configuration that was directing traffic to both master and replica. The changes should have been reverted and you shouldn't see this issue anymore. I

My google app instances does not seem to be on correct region

自作多情 提交于 2019-12-01 00:33:57
I have just created one google app engine application and one 2nd Generation MySQL instance in eu-west2 region. In GCP Console they both seems to be in eu-west2 region. However when I try to gelocate my ip's they seem to be in somewhere in US. What should I do to use GCP in eu-west2 region? my GCP instances: their locations: Google has an extensive world wide network. What you are seeing is us routing you to Google's closest Point of Presence ( POP ), which from that point on you're on a software defined network ( SDN ). What this means is we get your traffic on to our fast network as quickly

How do I connect to a Google Cloud SQL database using CodeIgniter?

只愿长相守 提交于 2019-11-30 21:13:34
问题 My CodeIgniter app on Google App Engine is not able to connect to my database on Google Cloud SQL. I tried so many things. My site loads when I leave database username, password & database name empty but, pages that have database calls show an error. It says that no database was selected. I noticed that my database was not created and created a new database and a user with all privileges. I entered this details in my app and now, it doesn't even connect to the database server. No pages serve.

Google Cloud SQL is now Read Only

為{幸葍}努か 提交于 2019-11-30 19:38:21
问题 We have an issue With Google Cloud SQL (Second Generation). Most inserts are failing with the following error: The MySQL server is running with the --read-only option so it cannot execute this statement. We have made no changes. This suddenly started happening. Tried restarting the Google Cloud SQL instance but it had no effect. Any suggestions on how we might fix quickly? 回答1: Google have fixed the problem. Their response was: We had a problematic configuration that was directing traffic to

Java connect to Cloud SQL 2nd Gen from Appengine Managed VM

 ̄綄美尐妖づ 提交于 2019-11-30 16:12:54
问题 Trying to setup connection to Clond SQL 2nd Generation for a Java Appengine with Managed VM. What I got: VM is using Appengine Compat mode ( FROM gcr.io/google_appengine/java-compat ) I see a MySQL pipe on the host (SSHed, I can see /cloudsql/** socket), but default MySQL Java driver doesnt support unix sockets Google Driver seems to be unsupported on Managed VM ( java.lang.ClassNotFoundException: com.mysql.jdbc.GoogleDriver ) and I cannot connect to MySQL by IP w/o driver it's No suitable