Lee*_*lly 8 postgresql ruby-on-rails pgadmin
我使用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
Run Code Online (Sandbox Code Playgroud)
在我的database.yml文件中:
development:
adapter: postgresql
host: localhost
username: achievenext
password: ******
database: achievenext_dev
Run Code Online (Sandbox Code Playgroud)
但是当我尝试连接pgAdmin时返回此错误:
发生了错误:
连接到服务器时出错:服务器意外关闭了连接.这可能意味着服务器在处理请求之前或处理时异常终止.
但我的服务器上没有错误.它看起来运行正常.无法弄清楚我在这里做错了什么.
小智 4
尝试将端口添加到您的development.yml
文件中。特别是如果您运行 Windows 操作系统。
默认端口是port:5432
,我不确定port:3000
在 pgAdminIII 中指定是否会导致问题。
归档时间: |
|
查看次数: |
6977 次 |
最近记录: |