0

我刚刚重命名了我的应用程序(用新名称替换了旧名称的所有实例),现在我的应用程序无法再连接到在 localhost 上运行的 postgres 数据库。

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 连接到服务器!

4

1 回答 1

0

我找到了答案:显然我的 postgres 服务器没有在本地运行,所以我不得不手动启动服务。:-)

于 2012-09-24T14:25:26.630 回答