[Babase] connecting to psql

Karl O. Pinc babase@www.eco.princeton.edu
Wed, 05 Oct 2005 19:26:06 +0000


On 10/05/2005 01:43:31 PM, Leah Gerber wrote:

  I tried
> 
> $ psql babase_test
> 
> psql: could not connect to server: Permission denied
>        Is the server running locally and accepting
>        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

Ah, I was wrong.

psql babase_test

should work.  The reason why it does not work for you is
that you don't have

PGHOST=localhost

in your environment.  (Add the line "export PGHOST=localhost"
to ~/.bash_profile)

Or use:

psql -h localhost babase_test


Karl <kop@meme.com>
Free Software:  "You don't pay back, you pay forward."
                  -- Robert A. Heinlein