CentOS PostgreSQL Spring Boot

org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user

投稿日:

CentOS 7.2, PostgreSQL 9.6, Spring Boot 2.0.0.BUILD-SNAPSHOT にて。

org.postgresql.util.PSQLException: FATAL: Ident authentication failed for user 

回避としては、例えば、

sudo vi /var/lib/pgsql/9.6/data/pg_hba.conf

ident を trust に変更。

# IPv4 local connections:
#host    all             all             127.0.0.1/32            ident
host    all             all             127.0.0.1/32            trust

PostgreSQL 再起動。

sudo systemctl restart postgresql-9.6

-CentOS, PostgreSQL, Spring Boot

Copyright© hirooka.pro , 2013-2018 All Rights Reserved.