X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id A6971D1B512 for ; Wed, 17 Sep 2003 09:09:32 +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 76030-05 for ; Wed, 17 Sep 2003 06:09:02 -0300 (ADT) Received: from camel.ablynx.com (unknown [62.58.96.54]) by svr1.postgresql.org (Postfix) with ESMTP id 37755D1B507 for ; Wed, 17 Sep 2003 06:09:00 -0300 (ADT) Received: by camel.ablynx.com (Postfix, from userid 5075) id 1700611F11; Wed, 17 Sep 2003 11:09:03 +0200 (CEST) Received: from ablynx.com (dhcp-165.ablynx.com [192.168.10.165])by camel.ablynx.com (Postfix) with ESMTPid E7E8211F10; Wed, 17 Sep 2003 11:09:02 +0200 (CEST) Message-ID: <3F6824A8.40206@ablynx.com> Date: Wed, 17 Sep 2003 11:08:56 +0200 From: khalil El Mazouari User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sergio Ramos , pgsql-interfaces@postgresql.org Subject: Re: [JDBC] 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/39 X-Sequence-Number: 4457 Hi, as postgres user use " postmaster -i -D /usr/local/pgsql/data/ & " to start postgresql. Khalil ;-) 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 > ----------------------------------------------------------------------- THIS E-MAIL MESSAGE IS INTENDED ONLY FOR THE USE OF THE INDIVIDUAL OR ENTITY TO WHICH IT IS ADDRESSED AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM DISCLOSURE. If the reader of this E-mail message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately at ablynx@ablynx.com. Thank you for your co-operation. -----------------------------------------------------------------------