I\'ve looked over Google Cloud SQL\'s documentation and various searches, but I can\'t find out whether it is possible to use SQLAlchemy with Google Cloud SQL, and if so, wh
For those who prefer PyMySQL over MySQLdb (which is suggested in the accepted answer), the SQLAlchemy connection strings are:
For Production
mysql+pymysql://
Please make sure to
Add the SQL instance to your app.yaml
:
beta_settings:
cloud_sql_instances:
Enable the SQL Admin API as it seems to be necessary:
https://console.developers.google.com/apis/api/sqladmin.googleapis.com/overview
For Local Development
mysql+pymysql://
given that you started the Cloud SQL Proxy with:
cloud_sql_proxy -instances=