当我尝试连接到本地PostgreSQL数据库时,遇到了以下错误:
无法连接到数据库[default]
这是数据库配置。 我相信没有拼写错误(笔误):
db.default.url="postgres://localhost:5432/myproject/"
db.default.user="postgres"
db.default.pass="mypassword"
db.default.driver="org.postgresql.Driver"
db.default.initSQL="SELECT 1"
问题出在哪里?使用pgAdmin可以轻松连接。
附言:
我正在使用Ubuntu。我注意到为了切换到postgres用户,
必须使用“su”,否则无法更改当前用户。
这是否与Play!无法连接我的数据库有关?
谢谢