TOP > PostgreSQLのエラー「psql: FATAL: Ident authentication failed for user "postgres"」の解消方法〜PHPでDB接続に失敗する場合〜 PostgreSQLのエラー「psql: FATAL: Ident authentication failed for user "postgres"」の解消方法〜PHPでDB接続に失敗する場合〜 IT・コンピュータ・家電等 コンソール画面でpsql -U postgresが利用できるようになっても、PHPでDB接続できない場合がある。 その時に、PostgreSQLのログを見てみると(Linuxなら/var/lib/pgsql/data/pg_logなどログがある)、以下のようなエラーが出ている。 LOG: could not connect to Ident server at
![PostgreSQLのエラー「psql: FATAL: Ident authentication failed for user "postgres"」の解消方法〜PHPでDB接続に失敗する場合〜 | r_nobuホームページ (のぶねこブログ)](https://cdn-ak-scissors.b.st-hatena.com/image/square/f64c32f630b745cc487988dd6457d81e3ab0c0fe/height=288;version=1;width=512/https%3A%2F%2Fnobuneko.com%2Fblog%2Fimages%2Fnoimage-1200.png)