Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZG4L7-00074Q-RX for pgsql-odbc@arkaria.postgresql.org; Fri, 17 Jul 2015 12:02:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZG4L6-00074z-Ug for pgsql-odbc@arkaria.postgresql.org; Fri, 17 Jul 2015 12:02:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZG4Kk-0006f3-J3 for pgsql-odbc@postgresql.org; Fri, 17 Jul 2015 12:01:42 +0000 Received: from mail.verishare.co.za ([217.29.208.2]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZG4Ke-0007yA-T3 for pgsql-odbc@postgresql.org; Fri, 17 Jul 2015 12:01:40 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.verishare.co.za (Postfix) with ESMTP id 1E44C42177E for ; Fri, 17 Jul 2015 14:01:31 +0200 (SAST) Received: from mail.verishare.co.za ([127.0.0.1]) by localhost (mail.verishare.co.za [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id XIC21uV2LTn0; Fri, 17 Jul 2015 14:01:30 +0200 (SAST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.verishare.co.za (Postfix) with ESMTP id C04F2422316; Fri, 17 Jul 2015 14:01:30 +0200 (SAST) X-Virus-Scanned: amavisd-new at verishare.co.za Received: from mail.verishare.co.za ([127.0.0.1]) by localhost (mail.verishare.co.za [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 8g5DcrRZVWIP; Fri, 17 Jul 2015 14:01:30 +0200 (SAST) Received: from STEFANPC (unknown [172.16.1.76]) by mail.verishare.co.za (Postfix) with ESMTPSA id 9C3E3422315 for ; Fri, 17 Jul 2015 14:01:30 +0200 (SAST) From: "Stefan Viljoen" To: References: <000b01d0c066$c58f3b80$50adb280$@verishare.co.za> <55A8BF02.4090001@lurcher.org> <002701d0c07f$bd09f3b0$371ddb10$@verishare.co.za> <55A8E0B8.3070107@lurcher.org> In-Reply-To: <55A8E0B8.3070107@lurcher.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> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQIlJsTM6eABCGiGgETx/eeRTV0aKQD+sBlEAd+uLVACvS0eZ50J5kng Content-Language: en-za X-Pg-Spam-Score: -3.1 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org 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