Postgres.app连接字符串格式

时间:2016-03-09 05:07:44

标签: postgresql sqlalchemy flask-sqlalchemy postgres.app

我在我的mac上本地安装了Postgres.app的全新安装。但是,我似乎无法为我的本地SQLAlchemy应用程序获取有效的postgres连接字符串。我需要一个格式为:

的postgres连接字符串

postgresql://username:password@host:5432/db_name

Postgres.app上的默认用户名/ dbname是我的终端用户名,没有密码。我知道另一种建议的字符串格式postgresql://localhost/db_name,这对我来说也不起作用。

0 个答案:

没有答案
相关问题