Connection refused (PGError) (postgresql and rails)

前端 未结 6 1078
栀梦
栀梦 2020-12-06 01:37

I keep getting this error when i try to run my localhost using \"$rails s\":

(Mac OSX 10.8.3) (ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.3.0]) (R

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-06 02:16

    I got this error message hooking up to Jira (from the Jira side) and the solution was to change the "Hostname or IP address of the database server." to "localhost". If you're running locally you can't just put in your local ip address.

    Also the next issue for a local install is the password always fails even though that's correct because pg_hba.conf needs to be edited so the authentication method is "trust".

提交回复
热议问题