[pgsql-jp: 25633] PostgreSQL server: (null)
SuzukiS
suzuki-s @ pc5.so-net.ne.jp
2002年 4月 20日 (土) 06:09:09 JST
加藤さん〓りがとうございました。
その通りでした。
PostgreSQL+Apache*+PHP4の初心者です。
ブラウザで見ることが出来るはずなのですが、ブラウザ上には以下の
エラーメッセージしか。
Warning: Unable to connect to PostgreSQL server: (null) in
/usr/lib/apache/phplib-7.2c/php/db_pgsql.inc on line 47
Database error: Link-ID == false, pconnect failed
PostgreSQL Error: 0 ()
Session halted.
db_pgsql.inc on line 47はと言うと
以下のfuncの$this->Link_ID=pg_pconnect($cstr);に当たります。
function connect() {
if ( 0 == $this->Link_ID ) {
$cstr = "dbname=".$this->Database.
$this->ifadd($this->Host, "host=").
$this->ifadd($this->Port, "port=").
$this->ifadd($this->User, "user=").
$this->ifadd($this->Password, "password=");
$this->Link_ID=pg_pconnect($cstr);
if (!$this->Link_ID) {
$this->halt("Link-ID == false, pconnect failed");
}
}
}
pgsql-jp メーリングリストの案内