From: Richard Huxton <dev@archonet.com>
To: mlc <lchan@mail.arc.nasa.gov>
Cc: pgsql-odbc@postgresql.org
Subject: Re: new to Unixodbc: can't connect to Postgresql
Date: Fri, 03 Sep 2004 09:21:53 +0100
Message-ID: <413829A1.5010309@archonet.com> (raw)
In-Reply-To: <55fe1952.0409021316.7eea93f8@posting.google.com>
References: <55fe1952.0409021316.7eea93f8@posting.google.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: dev@archonet.com, lchan@mail.arc.nasa.gov
Subject: Re: new to Unixodbc: can't connect to Postgresql
In-Reply-To: <413829A1.5010309@archonet.com>
References: <55fe1952.0409021316.7eea93f8@posting.google.com> <413829A1.5010309@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox