X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 444F55E4C12 for ; Sat, 4 Sep 2004 04:42:33 +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 99865-08 for ; Sat, 4 Sep 2004 03:42:24 +0000 (GMT) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by svr1.postgresql.org (Postfix) with ESMTP id 23CF85E4811 for ; Sat, 4 Sep 2004 04:24:53 +0100 (BST) Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by svr4.postgresql.org (Postfix) with ESMTP id 6041B5B0082 for ; Fri, 3 Sep 2004 08:21:56 +0000 (GMT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-31.mail.demon.net with esmtp (Exim 3.35 #1) id 1C39KU-0001PB-0V; Fri, 03 Sep 2004 08:21:54 +0000 Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 7DEA017F8C; Fri, 3 Sep 2004 09:21:53 +0100 (BST) Message-ID: <413829A1.5010309@archonet.com> Date: Fri, 03 Sep 2004 09:21:53 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 0.7 (X11/20040615) X-Accept-Language: en-us, en MIME-Version: 1.0 To: mlc Cc: pgsql-odbc@postgresql.org Subject: Re: new to Unixodbc: can't connect to Postgresql References: <55fe1952.0409021316.7eea93f8@posting.google.com> In-Reply-To: <55fe1952.0409021316.7eea93f8@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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/7 X-Sequence-Number: 4382 mlc wrote: > Hi, > I'm new to postgresql Unix odbc (iodbc). I am trying to test my > unixodbc connection to a local Postgres DB via the provided > "iodbctest" program and have been unsuccessful in getting a "SQL>" > prompt. Instead, it prints out a "Have nice day" message. Been > working on this problem for a week now and have not come up with > anything close at all. > Searched the web and this forum for any "ideas" as to what is wrong > and can't find anything. Any input or help in pointing me to the > right direction is highly appreciated and invaluable. 1. Make sure you are logging connection attempts in postgresql.conf and see if anything is happening there. 2. Make sure PG is listening on port 5432 (telnet localhost 5432, hit return twice and you should see an error message) 3. Check your pg_hba.conf is allowing access from localhost (NOT local) via passwords. -- Richard Huxton Archonet Ltd