X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 3217BD1B512 for ; Wed, 17 Sep 2003 09:02:52 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 69318-05 for ; Wed, 17 Sep 2003 06:02:23 -0300 (ADT) Received: from alfa.fastwebnet.it (alfa.fastwebnet.it [213.140.2.42]) by svr1.postgresql.org (Postfix) with ESMTP id 86463D1B509 for ; Wed, 17 Sep 2003 06:02:20 -0300 (ADT) Received: from tiscali.it (2.10.197.122) by alfa.fastwebnet.it (6.7.019) id 3F5706690020B51F for pgsql-jdbc@postgresql.org; Wed, 17 Sep 2003 11:02:16 +0200 Message-ID: <3F682320.4080109@tiscali.it> Date: Wed, 17 Sep 2003 11:02:24 +0200 From: Luca Moscatelli User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Connection refused. HELP ME!!!! References: <3F67251A.3070209@terra.es> In-Reply-To: <3F67251A.3070209@terra.es> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/191 X-Sequence-Number: 8332 Hi, Try this, modify pg_hba.conf in this way: host all all 127.0.0.1 255.255.255.255 trust local all all trust These are in my pg_bha.conf file and it works. I've founded them in the pg_hba.conf.sample file in the same directory. Bye, Luca Sergio Ramos wrote: > Hello. > I have installed postgresql with de jdbc driver, but I can't run the > example of the jdbc faq (http://www.fankhausers.com/postgresql/jdbc/). > I obtain: > ***Exception: > Connection refused. Check that the hostname and port are correct and > that the postmaster is accepting TCP/IP connections. > Connection refused. Check that the hostname and port are correct and > that the postmaster is accepting TCP/IP connections. > at > org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:161) > > at org.postgresql.Driver.connect(Driver.java:120) > at java.sql.DriverManager.getConnection(DriverManager.java:512) > at java.sql.DriverManager.getConnection(DriverManager.java:171) > at HelloPostgresql.(HelloPostgresql.java:34) > at HelloPostgresql.main(HelloPostgresql.java:115) > > I have modified my pg_hba.conf(host all 127.0.0.1 255.0.0.0 trust), > and my posgresql.conf(tcpip_socket = true) to admit tcp socket > connections. What can I do? > Thanks. > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > http://archives.postgresql.org