【发布时间】:2015-07-06 16:29:10
【问题描述】:
我在 Google AppEngine 上使用带有 Flask 的应用程序,我使用此常量 SQLALCHEMY_DATABASE_URI = 'mysql://user:pass@ip_address/database' 配置了数据库。但在生产机器上显示此错误:
OperationalError: (_mysql_exceptions.OperationalError) (2004, "Can't create TCP/IP socket (-1)")
我使用 requirements.txt 正确配置了 lib,并在 app.yaml 文件中添加了 MySQLdb。
【问题讨论】:
标签: python mysql sockets google-app-engine sqlalchemy