From: Inoue, Hiroshi <inoue@tpf.co.jp>
To: HAAS Benjamin <Benjamin.HAAS@cstb.fr>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: Remote connection through ODBC
Date: Thu, 11 Jul 2013 08:39:52 +0900
Message-ID: <51DDF0C8.2040208@tpf.co.jp> (raw)
In-Reply-To: <DB384A4D8014F74BB277756EA448108725213A17@Maude2010.cstb.local>
References: <DB384A4D8014F74BB277756EA448108725213A17@Maude2010.cstb.local>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
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
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: inoue@tpf.co.jp, Benjamin.HAAS@cstb.fr
Subject: Re: Remote connection through ODBC
In-Reply-To: <51DDF0C8.2040208@tpf.co.jp>
References: <DB384A4D8014F74BB277756EA448108725213A17@Maude2010.cstb.local> <51DDF0C8.2040208@tpf.co.jp>
* 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