Received: from sunny1.pacific.net.ph (sunny1.pacific.net.ph [210.23.234.92]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f8A8bb734474 for ; Mon, 10 Sep 2001 04:37:39 -0400 (EDT) (envelope-from batusaix@pacific.net.ph) Received: from pop2.pacific.net.ph (pop2.pacific.net.ph [210.23.234.90]) by sunny1.pacific.net.ph with ESMTP id f8A8bS109125 for ; Mon, 10 Sep 2001 16:37:28 +0800 (PHT) Received: from allan ([210.213.13.138]) by pop2.pacific.net.ph with SMTP id QAA16151 for ; Mon, 10 Sep 2001 16:37:18 +0800 (PHT) Message-ID: <000e01c13a53$2acc1940$8a0dd5d2@tip.edu.ph> From: "allan d. go" To: Subject: postgresql ODBC Date: Mon, 10 Sep 2001 16:45:56 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000B_01C13A18.0FD79FA0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Archive-Number: 200109/47 X-Sequence-Number: 920 This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C13A18.0FD79FA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable greetings, i compiled postgresql 7.1.2 with odbc option i created .odbc.ini on /home/pgsql <--- directory of my postgres user=20 =20 .odbc.ini=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 [ODBC Data Source] Driver=3D/usr/lib/libpsqlodbc.so Database=3Ddb1 Servername=3Dlocalhost <---- should i put the IP address? Port=3D5432 i installed psqlODBC and setup on my Win OS Datasource=3Dpostgresql Database=3Ddb1 Server=3D10.2.1.1 <----- ip address of my postgresql box post=3D5432 and i tried to connect via Visual Basic 6.0 VB6 Connection DNS=3Dpostgresql UID=3Dpostgres DATABASE=3Ddb1 i'm having "ODBC Database Open Failed, Check connect Info" error how can i check if i properly installed pgsql ODBC on my linux box? i know my postgresql is working, cause i can retrieve data via PHP program = on my Win OS ____________ another one, i copied the postgresql script of rpm to my compiled box and i= ssued this command to start postgres echo -n "Starting postgresql service: " su -l postgres -c 'nohup postmaster -D /home/pgsql/data >serv= er.log 2>&1 = >server.log 2>&1
greetings,
 
i compiled postgresql 7.1.2 with odbc=20 option
 
i created .odbc.ini on=20 /home/pgsql    <--- directory of my postgres user=20
 
.odbc.ini        &n= bsp;            = ;          =20
 
[ODBC Data Source]
Driver=3D/usr/lib/libpsqlodbc.so
Database=3Ddb1
Servername=3Dlocalhost  <---- shou= ld i put=20 the IP address?
Port=3D5432
 
i installed psqlODBC and setup on my Win OS
 
Datasource=3Dpostgresql
Database=3Ddb1
Server=3D10.2.1.1  <----- ip addre= ss of=20 my postgresql box
post=3D5432
 
and i tried to connect via Visual Basic=20 6.0
 
VB6 Connection
 
DNS=3Dpostgresql
UID=3Dpostgres
DATABASE=3Ddb1
 
i'm having "ODBC Database Open Failed, Che= ck=20 connect Info" error
 
how can i check if i properly installed pg= sql ODBC=20 on my linux box?
 
i know my postgresql is working, cause i can retrieve=20 data via PHP program on my Win OS
 
____________
 
another one, i copied the postgresql script of rpm to my compiled box = and=20 issued this command to start postgres
 
  echo -n "Starting postgresql service: "
  su -l postgres -c 'nohup postmaster -D /home/pgsql/data=20 </dev/null >>server.log 2>&1 </dev/null &'
  sleep 1
  pid=3D'pidof postmaster'
  if [$pid]
  then
    ...
    create pid file for postgres
    ....
  else
     echo failed
  fi   
 
  i can't start postgresql using this script
  but i can when i issue "nohup postmaster -D /home/pgsql/da= ta=20 </dev/null >>server.log 2>&1 </dev/null &'"
  on bash prompt using postgres user.
 
  something wrong with my script file?
 
 
just wondering...
 
        ^_^x
 
------=_NextPart_000_000B_01C13A18.0FD79FA0--