【发布时间】:2011-07-02 02:08:55
【问题描述】:
我在使用 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 时返回此错误:
发生错误:
连接服务器时出错:服务器 意外关闭连接。这可能意味着服务器在处理请求之前或期间异常终止。
但我的服务器上没有错误。它似乎运行良好。无法弄清楚我在这里做错了什么。
【问题讨论】:
标签: ruby-on-rails postgresql pgadmin