2011年12月7日

PostgreSQLエラー FATAL: Ident authentication failed for user hogehoge

iGoogleのスキンを雪だるまのにしたらちょっと気持ちが和んだ(*´ω`*)

さて、PHPからPostgreSQLに接続しようとしたら、postgresqlのエラーにタイトルのが出てた。
調べてみたらpg_hba.confの設定が怪しい模様。
参考:http://nobuneko.com/blog/archives/2010/03/postgresqlpsql_fatal_ident_aut_1.html

現在の設定が
local   all         all                                    ident sameuser
host    all         all         127.0.0.1/32          ident sameuser
だったので
local   all         all                                    trust
host    all         all         127.0.0.1/32          trust
に変更

postgresqlを再起動して再度試みたら
うごいたー!

その前にPHPにpgsqlが組み込まれてなかったり、自分で構築してないサーバは
やっぱり嫌だなぁ。

0 件のコメント:

コメントを投稿