X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BE4CF32A032 for ; Wed, 29 Sep 2004 03:39:16 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 53157-08 for ; Wed, 29 Sep 2004 02:39:02 +0000 (GMT) Received: from www.postgresql.com (www.postgresql.com [200.46.204.209]) by svr1.postgresql.org (Postfix) with ESMTP id 0BDA932A243 for ; Wed, 29 Sep 2004 03:39:06 +0100 (BST) Received: from hogranch.com (hogranch.com [66.117.128.240]) by www.postgresql.com (Postfix) with ESMTP id AD5FE5A1014 for ; Wed, 29 Sep 2004 03:38:54 +0100 (BST) Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id i8T2TlX17607 for ; Tue, 28 Sep 2004 19:29:47 -0700 Message-ID: <415A1E1B.6050100@hogranch.com> Date: Tue, 28 Sep 2004 19:29:47 -0700 From: John R Pierce User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Connection Port? References: <200409280931.52805.chelm@nsidc.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/199 X-Sequence-Number: 11089 Kris Jurka wrote: > On Tue, 28 Sep 2004, Chris Helm wrote: >>Im trying to use the pgsql-jdbc driver to establish a connection to my >>database with dbvisualer and am having trouble. I believe the problem is with >>port, ive tried 80, 8080, and 5432 (the default) but it still is not >>connecting. > > Why do you believe it is the port number? You haven't given us any error > message to try and convince us of that. My best blind guess at your > problem is that you have not enabled the tcpip_socket parameter in the > postgresql.conf file. Prior to the 8.0 release the database does not > listen on a tcpip socket by default, but instead makes itself available > over unix sockets (which Java cannot use). and, furthermore, the default pg_hba.conf (in the source distribution, at least) does not allow any sort of authentication via tcp. You need to add the appropriate line(s) such as... host all all 0.0.0.0 0.0.0.0 md5 (which will allow any IP address to authenticate as any user on any database via md5 password encryption... there are many other choices and combinations possible, see $PGDATA/pg_hba.conf and the PostgreSQL documentation for more information on authentication).