pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: James Thompson <jamest@math.ksu.edu>
To: Bob VonMoss <bvonmoss@bigfoot.com>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] connecting: unix socket? Yes. TCPIP port? No. -i? Yes.
Date: Fri, 5 Feb 1999 22:23:24 -0600 (CST)
Message-ID: <Pine.GSO.4.05.9902052216430.4380-100000@noether.math.ksu.edu> (raw)
In-Reply-To: <36BBBA90.67C72C26@bigfoot.com>

On Fri, 5 Feb 1999, Bob VonMoss wrote:

> I'm just getting into PostGreSQL and would ultimately like to
> communicate from a java/JDBC applet through the web with PostGreSQL on a
> Solaris unix system. I've had a user account created for me. I'm able to
> do everything so far from the commandline through unix sockets by
> running 'psql' and 'createdb mydb'.
> 

I'm new to postgresql as well but I had a similar problem.  The
pg_hba.conf file by default allows connections from the localhost and unix
socks but not tcp connections from other machines.  The default USERAUTH
is to trust connections from these two sources.  

I switched to crypt userauth and added a third connection type to the file
host         all         192.168.1.0   255.255.255.0     crypt

and it solved my problems.

->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<
James Thompson    138 Cardwell Hall  Manhattan, Ks   66506    785-532-0561 
Kansas State University                          Department of Mathematics
->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<





view thread (9+ messages)  latest in thread

Message-ID: <Pine.GSO.4.05.9902052216430.4380-100000@noether.math.ksu.edu>
Permalink:  ../Pine.GSO.4.05.9902052216430.4380-100000@noether.math.ksu.edu/
Also on:    postgresql.org/message-id/Pine.GSO.4.05.9902052216430.4380-100000@noether.math.ksu.edu

 · 

reply

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-interfaces@postgresql.org
  Cc: jamest@math.ksu.edu, bvonmoss@bigfoot.com
  Subject: Re: [INTERFACES] connecting: unix socket? Yes. TCPIP port? No. -i? Yes.
  In-Reply-To: <Pine.GSO.4.05.9902052216430.4380-100000@noether.math.ksu.edu>
  References: <36BBBA90.67C72C26@bigfoot.com> <Pine.GSO.4.05.9902052216430.4380-100000@noether.math.ksu.edu>

* 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