【发布时间】:2014-09-25 13:32:02
【问题描述】:
从 SqlAlchemy 通过 pg8000 连接到 postgres 工作正常,直到我在 postgres 上启用 SSL。
db = create_engine('postgresql+pg8000://user:pass@hostname/dbname', echo=True).connect()
现在它似乎失败了:
File "/Library/Python/2.7/site-packages/pg8000/core.py", line 872, in __init__
raise InterfaceError("communication error", exc_info()[1])
sqlalchemy.exc.InterfaceError: (InterfaceError) ('communication error', error(61, 'Connection refused')) None None
【问题讨论】:
标签: python sqlalchemy pg8000