pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stefan Viljoen <viljoens@verishare.co.za>
To: pgsql-odbc@postgresql.org
Subject: Re: Postgres 9.4 + unixODBC on Centos 6.5 problem connecting localhost postgres instance with isql ODBC commandline client
Date: Fri, 17 Jul 2015 13:00:05 +0200
Message-ID: <002701d0c07f$bd09f3b0$371ddb10$@verishare.co.za> (raw)
In-Reply-To: <55A8BF02.4090001@lurcher.org>
References: <000b01d0c066$c58f3b80$50adb280$@verishare.co.za>
	<55A8BF02.4090001@lurcher.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

Hi Nick

Thanks for the response - ok, I tried

[root@jhbasterisk ~]# isql -v pgdb-cdr dbuser dbname password
[28000][unixODBC]FATAL:  password authentication failed for user
"asteriskcdruser"
[ISQL]ERROR: Could not SQLConnect
[root@jhbasterisk ~]# isql pgdb-cdr dbuser password
[ISQL]ERROR: Could not SQLConnect
[root@jhbasterisk ~]#

E. g. the 28000 error message is gone, but now I just get Could Not
SQLConnect from isql...

So maybe a step in the right direction?

What can I try next?

Thank you very much for the assistance.

Kind regards,

-----Original Message-----
From: Nick Gorham [mailto:nick@lurcher.org] 
Sent: Friday,July 17, 2015 10:38 AM
To: Stefan Viljoen
Subject: Re: [ODBC] Postgres 9.4 + unixODBC on Centos 6.5 problem connecting
localhost postgres instance with isql ODBC commandline client

On 17/07/15 09:01, Stefan Viljoen wrote:
> Hi list
>
> I've got postges 9.4 installed on Centos 6.5. I have access to it from 
> psql and I have set up and filled a database I now want to access via 
> ODBC - all on the localhost, no remote access involved.
>
> If I do on my localhost machine on which postgres is running, while 
> logged in as root:
>
> ---
> # psql -U mydbuser -d mydbname
> ---
>
> it works fine - I get asked for my password (which is "mydbpassword"), 
> which I then enter and I can then interact with postgres in the psql 
> commandline client - run queries, create databases and tables, etc.
>
> However, if I run
>
> ---
> # isql -v pgdb-cdr mydbuser mydbname mydbpassword

Hi,

 From the unixODBC perspective, isql only takes three arguments (ignoring
options)

     isql dsn user password

If you want to set the dbname it would normally be done in the DSN entry.

--
Nick



-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (39+ messages)  latest in thread

Message-ID: <002701d0c07f$bd09f3b0$371ddb10$@verishare.co.za>
Permalink:  ../002701d0c07f$bd09f3b0$371ddb10$@verishare.co.za/
Also on:    postgresql.org/message-id/002701d0c07f$bd09f3b0$371ddb10$@verishare.co.za

 · 

reply

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: viljoens@verishare.co.za
  Subject: Re: Postgres 9.4 + unixODBC on Centos 6.5 problem connecting localhost postgres instance with isql ODBC commandline client
  In-Reply-To: <002701d0c07f$bd09f3b0$371ddb10$@verishare.co.za>
  References: <000b01d0c066$c58f3b80$50adb280$@verishare.co.za> <55A8BF02.4090001@lurcher.org> <002701d0c07f$bd09f3b0$371ddb10$@verishare.co.za>

* 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