Thread:

From
"Vlad Lemberg"
Date:

Hello,

I installed Cygwin on Windows XP.

But when I start psql from Administrator/Bin directory
( I see the file psql.exe there, which means that it is
  installed ), I receive a message

$ psql
psql: could not connect to server: No such file or directory
       Is the server running locally and accepting
       connections on Unix domain socket "/tmp/.s.PGSQL.5432"

How to fix that ?

Thanks.

Re:

From
"Henshall, Stuart - WCP"
Date:

You first need to downlaod & install cygipc, then run the ipc-daemon
eg: ipc-daemon &
then you need to intialise the database area:
initdb -D /usr/local/pgsql/data
Then run the postmaster for the database server
postmaster -D /usr/local/pgsql/data &
then create a database eg:
createdb test
then:
psql test
hth,
- Stuart

> -----Original Message-----
> From: Vlad Lemberg [mailto:vlemberg@avemacorp.com]
> Sent: 22 July 2002 21:10
> To: pgsql-cygwin@postgresql.org
> Subject: [CYGWIN]
>
>
>
>
> Hello,
>
> I installed Cygwin on Windows XP.
>
> But when I start psql from Administrator/Bin directory
> ( I see the file psql.exe there, which means that it is
>   installed ), I receive a message
>
> $ psql
> psql: could not connect to server: No such file or directory
>        Is the server running locally and accepting
>        connections on Unix domain socket "/tmp/.s.PGSQL.5432"  
>
> How to fix that ?
>
> Thanks.
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>