0
我刚刚重命名了我的应用程序(用新的应用程序替换了旧名称的所有实例),现在我的应用程序不能再连接到在本地主机上运行的postgres数据库。Rails 3:重命名应用程序后PostgreSQL访问被拒绝
PG::Error (could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
任何想法?
感谢:-----)
编辑:这是我的database.yml
common: &common
adapter: postgresql
username: <username>
password: <password>
development:
<<: *common
database: development
test:
<<: *common
database: test
production:
<<: *common
database: production
如果用户名和密码是我的Postgres安装的用户名和凭据。但是,我无法使用pgAdmin连接到服务器!
你可以发布你的database.yml文件,你也尝试将其重命名为旧名称,并检查它是否工作。 –