Re: [JDBC] JDBC - Open Office

From: Scott Taylor <scott(dot)taylor(at)4i-dotcom(dot)com>
To: Fernando Nasser <fnasser(at)redhat(dot)com>
Cc: Postgresql General <pgsql-general(at)postgresql(dot)org>, "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: [JDBC] JDBC - Open Office
Date: 2002-12-17 09:32:39
Message-ID: 1040117561.1128.23.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-jdbc pgsql-novice

Yes TCP/IP was set to to "true". As mentioned previously, there is no
problem with postmaster as I use it regularly.

So my problem remains that I cannot connect to PostgreSQL through Open
Office by JDBC using these parameters

URL -jdbc:postgresql://localhost/accs
Driver -org.postgresql.Driver
Username -xxxxx
Character Set -system

Any ideas?

Scott

On Mon, 2002-12-16 at 22:07, Fernando Nasser wrote:
> Scott Taylor wrote:
> > In the "new data source" in OO where the driver information is, it asks
> > for username and password. I assume it means for PostgreSQL not the
> > system?
> >
> > I am on the same machine as the server, and my pg_hba.conf file has the
> > following access:
> >
> > # TYPE DATABASE IP_ADDRESS MASK AUTH_TYPE
> > AUTH_ARGUMENT
> >
> > local all trust
> > host all 127.0.0.1 255.255.255.255 trust
> >
> > # Using sockets credentials for improved security. Not available
> > everywhere,
> > # but works on Linux, *BSD (and probably some others)
> >
> > local all ident sameuser
> >
>
> This would still not let you connect using TCP/IP. You must start your
> postmaster with '-i' or change the line in your postgresql.conf file from:
>
> #tcpip_socket = false
>
> to:
>
> tcpip_socket = true
>
> i.e., uncomment it and make it true (and restart your server).
>
>
> psql will connect regardless as it will use Unix sockets for a local database by
> default.
>
> --
> Fernando Nasser
> Red Hat - Toronto E-Mail: fnasser(at)redhat(dot)com
> 2323 Yonge Street, Suite #300
> Toronto, Ontario M4P 2C9
>
--
Scott Taylor
Managing Director
4i dotCom

Phone: +44 7767 257 371
Email: scott(dot)taylor(at)4i-dotcom(dot)com
Web: http://www.4i-dotcom.com

This transmission is confidential and intended for the named recipient
only. Should you not be the person or entity named, please be advised
that you have received this in error, and that you should delete this
immediately.

"™µú¡Ûû†ÚV´}_aGG)O¤ÇÞä‡ïŠeØWŒ`î”ÀO‘Ãü–ÀJèŠeB–ò ˵ýõ[\%ðˆ;.Aó¶ ¡UGÒ~å?~‡¹PÉFÃL¬7¾tI

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message zahid rahman 2002-12-17 10:31:48 Re: Is that it ?
Previous Message Lee Kindness 2002-12-17 09:25:13 RPMS for Redhat 7.3 ??

Browse pgsql-jdbc by date

  From Date Subject
Next Message Ericson Smith 2002-12-17 15:19:43 7.3 Prepared statements
Previous Message Oliver Jowett 2002-12-17 06:01:33 DatabaseMetaData oddities

Browse pgsql-novice by date

  From Date Subject
Next Message papapep 2002-12-17 12:33:05 Re: *SOLVED* - Problems with pg_dump
Previous Message Josh Berkus 2002-12-17 01:16:30 Re: Batch Table Creation - Foreign Key Problem