Appengine to MySQL Database hosted in Compute Engine

101 views
Skip to first unread message

Handerson Contreras

unread,
Jan 22, 2016, 11:46:18 AM1/22/16
to Google App Engine
Hello

Somebody knows if is it possible connect an application from Appengine to a mysql database hosted in compute engine?

I'm trying to do this with python and i have this error "Can't create TCP/IP socket (-1)"

I'm using SqlAlchemy ORM which use the next configuration:

 create_engine('mysql+mysqldb://root@ip/database')

and locally works but when i deploy the application to appengine doesn't work.

Thanks

Zeehad (Cloud Platform Support)

unread,
Jan 22, 2016, 5:51:24 PM1/22/16
to Google App Engine
Hello,

It is possible to connect an App Engine application to a MySQL database hosted in Compute Engine. However,

Sockets are only available for paid apps

Please make sure you have billing enabled for your project.

Also,this forum isn't really meant for specific-issue technical support. Feel free to post a thread like this on stackoverflow or the public issue tracker (depending on whether you think a solution exists and you just don't know it, or whether you think something is going wrong according to what docs say should happen in a given situation).

I hope it helps. Cheers!

Kartik Domadiya

unread,
Jan 28, 2016, 9:31:44 AM1/28/16
to Google App Engine
We are also facing the same issue though we have billing enabled in our app. 
Any clues ?
Reply all
Reply to author
Forward
0 new messages