google-cloud-sql

Site's up but it says on admin side 'unable to create a required directory and server connection error'

烂漫一生 提交于 2019-12-11 23:47:13
问题 I actually got my e-commerce wordpress site up on GAE but I'm not sure where I've messed up. Since you've got yours up, would like to ask just a little but of question: http://inbound-centaur-850.appspot.com/ My Issue is that it asks for a hostname, FTP? https://www.flickr.com/photos/65424091@N05/16453825236/ GAE doesn't have FTP so I don't get it. 1) I've set my access control on my instance 2) I've imported my SQL onto GAE - edited my .sql file by adding (a) CREATE DATABASE name of my

Connection pool with Google App Engine and Google Cloud SQL

ε祈祈猫儿з 提交于 2019-12-11 17:58:58
问题 There are numerous questions about using a db connection pool with Google App Engine, but a lot has changed recently. Up to this point, I could never get a connection pool to work with GAE. However, I think some recent develops may allow connection pooling to work, which may be why it is mentioned in the Google documentation (which seems to have recently been updated). https://cloud.google.com/sql/docs/mysql/connect-app-engine Can someone confirm that connection pools can be used? 1) We used

Spring Boot on Google Cloud SQL - org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set

匆匆过客 提交于 2019-12-11 16:46:39
问题 When I run my program in localhost connecting remotely to Google Cloud SQL (MySQL), it works. All the necessary IAM permission are in place once the program is deployed in the Google App Engine, it causes the error: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set. Logs Below: Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set at org.hibernate.engine.jdbc

Connection to Google Cloud PostgreSQL via JDBC with SSL

我的梦境 提交于 2019-12-11 15:45:58
问题 I can't connect Google Cloud PostgreSQL with JDBC. Java Version : 1.8.0_162 PostgreSQL JDBC Version : 42.2.2 try { Class.forName("org.postgresql.Driver"); } catch (ClassNotFoundException e) { System.out.println("Class not found"); } String url = "jdbc:postgresql://ipaddresshere:5432/postgres"; Properties props = new Properties(); props.setProperty("user","postgres"); props.setProperty("password","passwordhere"); props.setProperty("ssl","true"); props.setProperty("sslcert","/Users/bguler

Cannot import .csv into Cloud SQL from console

允我心安 提交于 2019-12-11 15:38:55
问题 I have tried multiple ways to import a .csv file into Cloud SQL (PostgreSQL), with no luck. psql -f import.sql does not work. It says that I must be a superuser to import, but that \copy works. So I tried \copy , and that fails. I get: postgres=> \copy ppw_raw FROM 'H:\data\data.csv' WITH (FORMAT csv); server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. So finally I try from https://console.cloud.google.com

RuntimeError: OperationalError: (2003, Can't connect to MySQL server on 'IPaddress of the instance'

五迷三道 提交于 2019-12-11 14:53:44
问题 I'm trying to run a Python(version 2.7.1') script where I am using pymysql package to create a table into a database from a CSV file. It runs correctly in my local system, however, the problem appears when running the same script as a part of a pipeline in Google Cloud Dataflow . My Python function is the following one: class charge_to_db(beam.DoFn): def process(self, element): import pymysql with open(element, 'r') as f: data = f.read().decode("UTF-8") datalist = [] for line in data.split('

I can't connect to my google cloud sql database from my deployed backend servlet on the google app engine

大憨熊 提交于 2019-12-11 14:27:39
问题 I have done everything that is required of me and my deployed backend servlet on the google app engine isn't making any connection to my google cloud database and the worst part of it, is that, my app engine log isn't even showing any error at all, its showing "POST /hello HTTP/1.1" 200 46... I seriously don't understand what is going on here for the past 5days.. these are the things i have done below: This is my servlet code: public class MyServlet extends HttpServlet { @Override public void

Intermittent SSL Error on Google Cloud SQL with Django

℡╲_俬逩灬. 提交于 2019-12-11 12:23:00
问题 I'm trialling switching to Google Cloud SQL from hosting my own MySQL server for my django application. The application has been running with the same configuration (aside from the MySQL SSL certificates) against a Galera Cluster (also on GCE) for several weeks without the below problem. I've set up my django application application on a Google Cloud Compute VM, and configured to point at my Cloud SQL instance. I've set up a load balancer (albeit with only 1 VM in the backend for the purposes

How do I create a Federated Table in Google Cloud SQL

蹲街弑〆低调 提交于 2019-12-11 11:29:31
问题 I have a Joomla (PHP) website with an existing hosted MySQL database. I have a Google Cloud SQL Instance with some statistical data in. I need to query the data across both databases and would like the query to run on the Google Cloud SQL instance. My research so far has lead me to belive that the best way to do this is to create a federated table inside the Google Cloud SQL database but in attempting to do this I am not getting the results I expect (neither am I getting an error?!) Joomla

optimizer_search_depth in Google Cloud SQL

与世无争的帅哥 提交于 2019-12-11 11:13:13
问题 I have a problem in my Google Cloud SQL database. State of some queries stays "statistics" for long time. +-------+------+-----------+------+---------+------+------------+-------------- | Id | User | Host | db | Command | Time | State | Info +-------+------+-----------+------+---------+------+------------+-------------- | 18533 | root | localhost | mydb | Execute | 2485 | statistics | SELECT * FROM... | 18537 | root | localhost | mydb | Execute | 2424 | statistics | SELECT * FROM... | 18539 |