postgresql - psql: FATAL: password authentication failed -
when ever trying run psql in command line, asking password:
.
i'm not sure username , password is.
i installed postgresql brew install postgres
pg_hba.conf
# database superuser. if not trust local users, # use authentication method. # type database user address method # "local" unix domain socket connections local trust # ipv4 local connections: host 127.0.0.1/32 trust # ipv6 local connections: host ::1/128 trust # allow replication connections localhost, user # replication privilege. #local replication austintruong trust #host replication austintruong 127.0.0.1/32 trust #host replication austintruong ::1/128 trust
let me know if there confusion in question.
edit
in other posts, mentions if change pg_hba.conf file local all trust
, shouldn't require password. still requesting password.
i've followed steps postgresql: password authentication failed user "postgres", i'm still having same issue. added line
local postgres ident
if want create new database account own os account use:
/usr/local/bin/createdb someusername
see if works. also other question might help.
edit:
use brew info postgres
more information version.
Comments
Post a Comment