Reputation: 26071
I'm trying to setup my rails environment for development on CentOS7. When I try to create the database I get the error
PG::ConnectionBad: FATAL: no pg_hba.conf entry for host "[local]", user "antarr", database "postgres", SSL off
. Below are my configurations
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all postgres trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 ident
# Allow replication connections from localhost, by a user with the
# replication privilege.
local replication all peer
host replication all 127.0.0.1/32 ident
host replication all ::1/128 ident
hostnossl all all 0.0.0.0/0 trust
host all all 0.0.0.0/0 md5
listen_addresses = '*'
Upvotes: 0
Views: 40