Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZG6SR-0003JL-8A for pgsql-odbc@arkaria.postgresql.org; Fri, 17 Jul 2015 14:17:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZG6SQ-000245-MG for pgsql-odbc@arkaria.postgresql.org; Fri, 17 Jul 2015 14:17:46 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZG6S2-0000lp-Qf for pgsql-odbc@postgresql.org; Fri, 17 Jul 2015 14:17:22 +0000 Received: from mail.lurcherlink.org ([217.34.199.121] helo=mail.lurcher.org) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZG6S0-0001Um-8R for pgsql-odbc@postgresql.org; Fri, 17 Jul 2015 14:17:21 +0000 Received: from [172.20.0.153] (hul.easysoft.local [172.20.0.153]) by mail.lurcher.org (8.14.3/8.12.8) with ESMTP id t6HEAVe2025920 for ; Fri, 17 Jul 2015 15:10:32 +0100 Message-ID: <55A90E6A.4030802@lurcher.org> Date: Fri, 17 Jul 2015 15:17:14 +0100 From: Nick Gorham User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 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 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> <55A8F948.9040407@lurcher.org> <002f01d0c090$da03cc50$8e0b64f0$@verishare.co.za> <55A905FA.2080701@aklaver.com> <003001d0c099$e21a7b60$a64f7220$@verishare.co.za> In-Reply-To: <003001d0c099$e21a7b60$a64f7220$@verishare.co.za> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sipserver.lurcher.org X-Pg-Spam-Score: -2.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 On 17/07/15 15:07, Stefan Viljoen wrote: > Hi Adrian > > Thanks for replying! > >> So what does your odbcinst.ini file look like? > Here is my odbcinst.ini file, as automatically created when installing the > postgresql-odbc package in Centos 6.5 via YUM: > > --- > # Example driver definitions > > # Driver from the postgresql-odbc package > # Setup from the unixODBC package > [PostgreSQL] > Description = ODBC for PostgreSQL > Driver = /usr/pgsql-9.4/lib/psqlodbc.so > Setup = /usr/lib/libodbcpsqlS.so > Driver64 = /usr/pgsql-9.4/lib/psqlodbc.so > Setup64 = /usr/lib64/libodbcpsqlS.so > FileUsage = 1 > > # Driver from the mysql-connector-odbc package > # Setup from the unixODBC package > [MySQL] > Description = ODBC for MySQL > Driver = /usr/lib/libmyodbc5.so > Setup = /usr/lib/libodbcmyS.so > Driver64 = /usr/lib64/libmyodbc5.so > Setup64 = /usr/lib64/libodbcmyS.so > FileUsage = 1 > --- > >> What happens if you temporarily change the authentication to trust in > pg_hba.conf and after reloading the Postgres server try to connect? > > [root@jhbasterisk pg_log]# vim ../pg_hba.conf > > Change to read like this: > > --- > local all all trust > host all all 127.0.0.1/32 trust > host all all ::1/128 trust > --- > > [root@jhbasterisk pg_log]# service postgresql-9.4 restart > Stopping postgresql-9.4 service: [ OK ] > Starting postgresql-9.4 service: [ OK ] > [root@jhbasterisk pg_log]# isql -vvvvvv pgdb-cdr dbuser password > [S1000][unixODBC]The database does not exist on the server > or user authentication failed. > [ISQL]ERROR: Could not SQLConnect Getting confused now. The above leads me to believe you should have Database = asteriskcdrcdrdb in the odbc.ini entry and connect as isql -v pgdb-cdr asteriskcdruser whateverthepasswordis I was assuming you were replacing dbuser, dbname and password with the real ones for your situation. -- Nick -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc