PEAR and postgreSQL

From: Date: Sun, 29 May 2011 06:40:40 +0000
Subject: PEAR and postgreSQL
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31126@lists.php.net to get a copy of this message
Dear members, I have a very serious problem with using PEAR. I use PHP5.3, postgreSQL8.3. The version of PEAR is 1.9.2. The installation of PEAR is OK. When I try to use a typical PEAR database connection statement such as $db =& DB::connect('pgsql://user:password@localhost/dbname'); I get the following errot. Unable to connect to PostgreSQL server: FATAL: no pg_hba.conf entry for host "::1", user "user", database "dbname", SSL off It seems that many postgreSQL users had this problem. The solution commonly known for this is to remove # from the last line of pg_hba.conf. # IPv6 local connections: #host all all ::1/128 md5 > host all all ::1/128 md5 However, this does not work. I also saw a solution, such as adding the following statements to postgresql.conf. tcpip_socket = on silent_mode = on But this also did not work. In the first place, my postgreSQL8.3's postgresql.conf does not have such statements in the template. So I guess this is not a solution. I know that I have to do something with IPV6, but I tried everything I could. Please someone help me. Sugai PS I know that DB is no longer recommended, but this is just an example. My PEAR and postgreSQL are totally incommunicable.

« previous php.pear.general (#31126) next »