Not sure what error you are seeing when trying to connect?. At a guess I'd say port 3000
seems unlikely.... postgres default port is 5432
.
pgAdmin III An error has occurred: Error connecting to the server: to rails webrick server in development enviroment
-
01-04-2022 - |
Question
I'm building my first rails app with PostgreSQL, everthing has been going fine but now I need to get direct access to the database. I was hoping to use a GUI like pgAdmin III but I'm not sure how to connect it to my development database?
I've tried the following but I'm only guessing as I could find no guides
In my database.yml file I have
development:
adapter: postgresql
encoding: unicode
database: myapp_development
pool: 5
username: ross
password:
in pgAdmin III - New Server Registration - Properties
Name: myapp_development
Host: 127.0.0.1
port: 3000
SSL:
Maintenance DB: postgres
username: ross
password:
Store password: false
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow