Could it be a configuration thing?
On Thursday, February 21, 2013 7:49:06 AM UTC-6, jcol...@qualitydistribution.com wrote:
Here is the code:import cgi
import webapp2
from google.appengine.api import rdbms
CLOUDSQL_INSTANCE = ''
DATABASE_NAME = 'my database name'
USER_NAME = 'my user'
PASSWORD = 'my pw'def get_connection():
return rdbms.connect(instance=CLOUDSQL_INSTANCE, database=DATABASE_NAME,
user=USER_NAME, password=PASSWORD, charset='utf8')...conn = get_connection()
cursor = conn.cursor()
On Wednesday, February 20, 2013 5:26:49 PM UTC-6, Rob wrote:Make sure you are importing the correct rdbms module.See https://developers.google.com/appengine/docs/python/ cloud-sql/developers-guide# import_the_driver RobOn Wed, Feb 20, 2013 at 2:09 PM, <jcol...@qualitydistribution.com > wrote:
I'm trying to develop my first GAE Python app with the cloud sql. during development, I'm trying to connect to a local Mysql instance. In my development enviro I've tried to connect to both the cloud sql instance I've created, and my local. for both, I get this:OperationalError: (2004, "Can't create TCP/IP socket (10104)")Any ideas?The code that calls it is this:--rdbms.connect(instance=
CLOUDSQL_INSTANCE, database=DATABASE_NAME, user=USER_NAME, password=PASSWORD, charset='utf8')
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com .
For more options, visit https://groups.google.com/groups/opt_out .
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment