From: | Luca Moscatelli <imbruglia(at)tiscali(dot)it> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Connection refused. HELP ME!!!! |
Date: | 2003-09-17 09:02:24 |
Message-ID: | 3F682320.4080109@tiscali.it |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces pgsql-jdbc |
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 <empty> <empty> 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.<init>(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
From | Date | Subject | |
---|---|---|---|
Next Message | khalil El Mazouari | 2003-09-17 09:08:56 | Re: [JDBC] Connection refused. HELP ME!!!! |
Previous Message | Alberto Cabello Sanchez | 2003-09-17 06:29:12 | Re: ColumnName and ColumnNumber in libpq (C interface) |
From | Date | Subject | |
---|---|---|---|
Next Message | Atul Arora | 2003-09-17 09:07:27 | Error Codes |
Previous Message | Barry Lind | 2003-09-17 08:21:59 | Re: Fix for receiving empty query errors. |