次のページのサンプルを入れてみるところ(IDとPASSは変更していますが。)
http://www.hizlab.net/app/view/install/test_php_pgsql.php?prev=install.html%23test
次のようなエラーが発生します。
ターミナルからのtemplate1へのログインではうまく接続できるのですが、この場合、どこがおかしいのでしょうか?
--------------------- error ------------------------------
Welcome PHP + PostgreSQL World!!
Warning: pg_connect() unable to connect to PostgreSQL server: FATAL: IDENT authentication failed for user "postgres" in /home/user/public_html/test.php on line 24
I can not connect to DataBase(template1)
-----------------------------------------------------------
よろしくお願いします。
お礼
どうもありがとうございました。 grantしたつもりだったんですが、どうも漏れていたようです。 おかげで繋がりました。