[Babase] connecting to psql

Leah Gerber babase@www.eco.princeton.edu
Wed, 05 Oct 2005 15:30:07 -0400


--On Wednesday, October 05, 2005 7:26 PM +0000 "Karl O. Pinc" 
<kop@meme.com> wrote:

>
> 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
>

Great. Both of those options work. Now I will see if I can copy files 
into babase_test.  Thanks!

Leah