繁体   English   中英

pgAdmin III发生错误:连接到服务器时出错:在开发环境中使用rails webrick server

[英]pgAdmin III An error has occurred: Error connecting to the server: to rails webrick server in development enviroment

我正在使用PostgreSQL构建我的第一个rails应用程序,everthing一直很好,但现在我需要直接访问数据库。 我希望使用像pgAdmin III这样的GUI,但我不确定如何将它连接到我的开发数据库?

我尝试过以下但我只是在猜测,因为我找不到任何指南

在我的database.yml文件中,我有

development:
  adapter: postgresql
  encoding: unicode
  database: myapp_development
  pool: 5
  username: ross
  password:

pgAdmin III中 - 新服务器注册 - 属性

Name: myapp_development
Host: 127.0.0.1
port: 3000
SSL:
Maintenance DB: postgres
username: ross
password: 
Store password: false

不确定在尝试连接时你看到了什么错误? 猜测我会说端口3000看起来不太可能...... postgres默认端口是5432

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM