Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 44846475B07 for ; Tue, 3 Dec 2002 23:24:55 -0500 (EST) Received: from i2r.a-star.edu.sg (rodin.krdl.org.sg [192.122.139.27]) by postgresql.org (Postfix) with ESMTP id 9F34F475AE5 for ; Tue, 3 Dec 2002 23:24:53 -0500 (EST) Received: from mailhost1 (localhost [127.0.0.1]) by i2r.a-star.edu.sg (8.11.1/8.11.1) with ESMTP id gB44Lx304190 for ; Wed, 4 Dec 2002 12:21:59 +0800 (SGT) X-Authentication-Warning: rodin.lit.org.sg: iscan owned process doing -bs Received: from LingJiaPC1 (LingJiaPC1.lit.org.sg [192.168.133.68]) by mailhost.lit.org.sg (iPlanet Messaging Server 5.2 HotFix 0.5 (built Jun 7 2002)) with SMTP id <0H6K00FQZV14CG@mailhost.lit.org.sg> for pgsql-odbc@postgresql.org; Wed, 04 Dec 2002 12:27:08 +0800 (SGT) Date: Wed, 04 Dec 2002 12:24:51 +0800 From: lingjia Subject: Re: Problem to connect to PostgreSQL7.2.3 using UNIXODBC's To: pgsql-odbc@postgresql.org Message-id: <01f601c29b4d$19a22900$4485a8c0@lit.org.sg> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Mailer: Microsoft Outlook Express 6.00.2800.1106 Content-type: multipart/alternative; boundary="Boundary_(ID_t9RoWH7vZb4pv+7kUBO12w)" X-Priority: 3 X-MSMail-priority: Normal References: <01af01c29b42$484f0440$4485a8c0@lit.org.sg> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/26 X-Sequence-Number: 2415 This is a multi-part message in MIME format. --Boundary_(ID_t9RoWH7vZb4pv+7kUBO12w) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT Hi, Please ignore my previous posting, I searched the web again and changed the following: 1) Starting postmaster with -i option 2) uncommeted tcpip_socket=false in /usr/local/pgsql/data/postgresql.conf file and set it to true. And it is working! Thanks anyway! Lingjia ----- Original Message ----- From: lingjia To: pgsql-odbc@postgresql.org Sent: Wednesday, December 04, 2002 11:07 AM Subject: [ODBC] Problem to connect to PostgreSQL7.2.3 using UNIXODBC's datamanager Hi, I have encountered a problem when I tried to use UnixODBC to connect to PostgreSQL7.2.3 Here are my ini files: ********************************************************* [postgres@sv-ns postgres]$ cat /etc/odbc.ini [postgre_test] Description = postgresql Driver = postgresql Trace = No TraceFile = Database = testing Servername = sv-ns UserName = Password = Port = 5432 Protocol = 6.4 ReadOnly = No RowVersioning = No ShowSystemTables = No ShowOidColumn = No FakeOidIndex = No ConnSettings = ************************************************************ [postgres@sv-ns postgres]$ cat /etc/odbcinst.ini [postgresql] Description = Driver for postgresql Driver = /usr/local/pgsql/lib/libodbcpsql.so Setup = /usr/lib/libodbcpsqlS.so FileUsage = 1 CPTimeout = CPReuse = ************************************************************ When I run DBManager, it says that: "Could not connect to the server; could not connect to the remote socket." The postgresql is running, I am able to browse and issue SQL statements on the database using psql. Did I miss sth here? Thanks in advance! Lingjia --Boundary_(ID_t9RoWH7vZb4pv+7kUBO12w) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: 7BIT
Hi,
 
Please ignore my previous posting, I searched the web again and changed the following:
 
1) Starting postmaster with -i option
2) uncommeted tcpip_socket=false in /usr/local/pgsql/data/postgresql.conf file and set it to true.
 
And it is working!
 
Thanks anyway!
 
Lingjia
 
 
 
----- Original Message -----
From: lingjia
Sent: Wednesday, December 04, 2002 11:07 AM
Subject: [ODBC] Problem to connect to PostgreSQL7.2.3 using UNIXODBC's datamanager

Hi,
 
I have encountered a problem when I tried to use UnixODBC to connect to PostgreSQL7.2.3

Here are my ini files:
*********************************************************
[postgres@sv-ns postgres]$ cat /etc/odbc.ini
[postgre_test]
Description             = postgresql
Driver          = postgresql
Trace           = No
TraceFile               =
Database                = testing
Servername              = sv-ns
UserName                =
Password                =
Port            = 5432
Protocol                = 6.4
ReadOnly                = No
RowVersioning           = No
ShowSystemTables                = No
ShowOidColumn           = No
FakeOidIndex            = No
ConnSettings            =
************************************************************
[postgres@sv-ns postgres]$ cat /etc/odbcinst.ini
[postgresql]
Description             = Driver for postgresql
Driver          = /usr/local/pgsql/lib/libodbcpsql.so
Setup           = /usr/lib/libodbcpsqlS.so
FileUsage               = 1
CPTimeout               =
CPReuse         =
************************************************************
When I run DBManager, it says that:
"Could not connect to the server; could not connect to the remote socket."

The postgresql is running, I am able to browse and issue SQL statements on
the database using psql.  Did I miss sth here?

Thanks in advance!
 
 
Lingjia
--Boundary_(ID_t9RoWH7vZb4pv+7kUBO12w)--