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 14:04:47 +0200
Message-ID: <002e01d0c088$c6b57390$54205ab0$@verishare.co.za> (raw)
In-Reply-To: <55A8E0B8.3070107@lurcher.org>
References: <000b01d0c066$c58f3b80$50adb280$@verishare.co.za>
	<55A8BF02.4090001@lurcher.org>
	<002701d0c07f$bd09f3b0$371ddb10$@verishare.co.za>
	<55A8E0B8.3070107@lurcher.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

Hi Nick,

Ok, I added -v back, this gives

[root@jhbasterisk ~]# isql -v pgdb-cdr  dbuser password
[S1000][unixODBC]The database does not exist on the server
or user authentication failed.
[ISQL]ERROR: Could not SQLConnect
[root@jhbasterisk ~]#

If I do

[root@jhbasterisk ~]# psql -U dbuser -d dbname

all works fine:

[root@jhbasterisk ~]# psql -U dbuser -d dbname
Password for user asteriskcdruser:
psql (9.4.4)
Type "help" for help.

dbname=> \d+
;
                                List of relations
 Schema |      Name      |   Type   |      Owner      |    Size    |
Description
--------+----------------+----------+-----------------+------------+--------
-----
 public | cdr            | table    | dbuser | 8192 bytes |
 public | cdr_id_seq     | sequence | dbuser | 8192 bytes |
 public | cdr_leg        | table    | dbuser | 8192 bytes |
 public | cdr_leg_id_seq | sequence | dbuser | 8192 bytes |
 public | cel            | table    | dbuser | 8192 bytes |
 public | cel_id_seq     | sequence | dbusr | 8192 bytes |
(6 rows)

dbname=> ;
dbname=>

So Postgres itself does seem to know of the user and the database... but
accessing them via ODBC goes south somehow.

Is there any way I can raise the verbosity level (for example)? I've tried
isql -vvvvvv but I still just get "Database soed not exist on the server or
user authentication failed".

Thank you very much for your kind assistance.

Regards,

-----Original Message-----
From: Nick Gorham [mailto:nick@lurcher.org] 
Sent: Friday,July 17, 2015 01:02 PM
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 12:00, Stefan Viljoen wrote:
> 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,

The error has gone because you didn't have the -v option.

My point was you cant specify the database on the command line with isql

isql -v pgdb-cdr dbuser password

Will show you the error.

--
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: <002e01d0c088$c6b57390$54205ab0$@verishare.co.za>
Permalink:  ../002e01d0c088$c6b57390$54205ab0$@verishare.co.za/
Also on:    postgresql.org/message-id/002e01d0c088$c6b57390$54205ab0$@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: <002e01d0c088$c6b57390$54205ab0$@verishare.co.za>
  References: <000b01d0c066$c58f3b80$50adb280$@verishare.co.za> <55A8BF02.4090001@lurcher.org> <002701d0c07f$bd09f3b0$371ddb10$@verishare.co.za> <55A8E0B8.3070107@lurcher.org> <002e01d0c088$c6b57390$54205ab0$@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