Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZG3KU-0004zB-MU for pgsql-odbc@arkaria.postgresql.org; Fri, 17 Jul 2015 10:57:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZG3KU-0004FW-8j for pgsql-odbc@arkaria.postgresql.org; Fri, 17 Jul 2015 10:57:22 +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 1ZG3K8-0003q3-2P for pgsql-odbc@postgresql.org; Fri, 17 Jul 2015 10:57:00 +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 1ZG3K3-0006hj-GC for pgsql-odbc@postgresql.org; Fri, 17 Jul 2015 10:56:58 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.verishare.co.za (Postfix) with ESMTP id 583B942177D for ; Fri, 17 Jul 2015 12:56:49 +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 Uq0YhM9eIqik; Fri, 17 Jul 2015 12:56:49 +0200 (SAST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.verishare.co.za (Postfix) with ESMTP id 1049F422092; Fri, 17 Jul 2015 12:56:49 +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 JZyrdSlsXNRk; Fri, 17 Jul 2015 12:56:49 +0200 (SAST) Received: from STEFANPC (unknown [172.16.1.76]) by mail.verishare.co.za (Postfix) with ESMTPSA id F032642177D for ; Fri, 17 Jul 2015 12:56:48 +0200 (SAST) From: "Stefan Viljoen" To: References: <000b01d0c066$c58f3b80$50adb280$@verishare.co.za> <55A8BF02.4090001@lurcher.org> In-Reply-To: <55A8BF02.4090001@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 13:00:05 +0200 Message-ID: <002701d0c07f$bd09f3b0$371ddb10$@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+sBlEnS677oA= 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 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