Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ux3zN-0004R7-Sj for pgsql-odbc@arkaria.postgresql.org; Wed, 10 Jul 2013 23:40:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Ux3zN-0006LG-67 for pgsql-odbc@arkaria.postgresql.org; Wed, 10 Jul 2013 23:40:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ux3zM-0006L9-Mg for pgsql-odbc@postgresql.org; Wed, 10 Jul 2013 23:40:00 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Ux3zJ-0003eR-CK for pgsql-odbc@postgresql.org; Wed, 10 Jul 2013 23:40:00 +0000 Received: (qmail 15824 invoked by uid 512); 10 Jul 2013 23:39:55 -0000 Received: from unknown (HELO ?127.0.0.1?) (100.126.1.62) by sd2.tpf-fw-c.co.jp with SMTP; 10 Jul 2013 23:39:55 -0000 Message-ID: <51DDF0C8.2040208@tpf.co.jp> Date: Thu, 11 Jul 2013 08:39:52 +0900 From: "Inoue, Hiroshi" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: HAAS Benjamin CC: "pgsql-odbc@postgresql.org" Subject: Re: Remote connection through ODBC References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.2 (--) 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, (2013/07/10 23:47), HAAS Benjamin wrote: > Dear all > > I am a newbie using PostgreSQL, for instance through ODBC. I have > troubles with the remote connection through ODBC. I have a PostgreSQL > 9.1 instance on an Ubuntu 13.04, a client on a Centos 6.4. > > ODBC driver on the CentOs machine is the standard one shipped in the > CentOS repo, version 08.04.0200. > > I have no problem to connect locally to the PostgreSQL from the Ubuntu > machine. However, when I try an isql query from the Centos client, i get > [ISQL]ERROR: Could not SQLConnect. > > Note that the file postgresql.conf contains a listen_adresses='*', and > pg_hba.conf contains the line > host all all 0.0.0.0/0 md5 > > On the other hand, I have no problem to connect through pgadmin3 from > the CentOS machine. As well with the psql commant : it works. > > At the end, I am interested in querying the database from a C code : of > course it does not work > > File obc.ini contains correct credentials (and a connection to a MySQL > server works) Could you please show us your odbc.ini? regards, Hiroshi Inouw -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc