1
I have running PostgreSQL sever on 192.168.0.102:5432. postgresql.conf has this line:
listen_addresses = '*'
and pg_hba.conf has this one:
host all all 127.0.0.1/32 trust
I have Rails app with same config/database.yml
development:
adapter: postgresql
host: 192.168.0.102
port: 5432
encoding: unicode
database: test
pool: 5
username: test
password:
But when I run rake db:migrate I get (I run this from 192.168.0.100)
FATAL: no pg_hba.conf entry for host "192.168.0.100", user "test", database "postgres", SSL on
FATAL: no pg_hba.conf entry for host "192.168.0.100", user "test", database "postgres", SSL off
...
Who can help with this?
Apparently the "test" user needs to be able to access the "postgres" database to take certain actions related to the "test" database. This cropped up for me during the db:test:purge task while running "rake spec". It confused me because I'm not explicitly trying to do anything as the "postgres" user. – Steve – 2014-01-17T19:32:47.897