我无法使用 pgAdmin 连接到我的 Rails 应用程序的数据库。我正在运行服务器,并且我相信我的服务器属性在 pgAdmin 中是正确的。这是我在 pgAdmin 服务器属性中的内容:
Name: achievenext_dev
Host: localhost
port: 3000
SSL:
Maintenance DB: postgres
username: achievenext
password: ******
Store password: true
Restore env?: true
DB Restriction:
Service:
Connect now: true
在我的 database.yml 文件中:
development:
adapter: postgresql
host: localhost
username: achievenext
password: ******
database: achievenext_dev
但是当我尝试连接 pgAdmin 时返回此错误:
发生了错误:
连接到服务器时出错:服务器意外关闭了连接。这可能意味着服务器在处理请求之前或期间异常终止。
但是我的服务器上没有错误。它似乎运行良好。无法弄清楚我在这里做错了什么。