Re: Problem starting a session

From: Justin Clift <justin(at)postgresql(dot)org>
To: "news(dot)verizon(dot)net" <ferindo(dot)middleton(at)verizon(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Problem starting a session
Date: 2003-02-02 10:02:22
Message-ID: 3E3CECAE.2000203@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

news.verizon.net wrote:
>
> [root(at)localhost root]# psql test
> 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"?
>
> anybody know why I'm getting this error message..... I'm a newbie... please
> point me in the right direction.

Hi Ferindo,

Any idea if PostgreSQL was started with the option to tell it that it
needs to communicate over the network? By default it uses a system
called Unix Domain Sockets, and doesn't listen to the network.

If you're not sure, then in the PostgreSQL "data" directory there is a
file called "postgresql.conf". You'll need to change the option there
called "tcpip_socket" to be "true", then restart PostgreSQL. It should
work after that.

Hope that helps.

:-)

Regards and best wishes,

Justin Clift

--
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alan T. Miller 2003-02-02 10:08:07 Re: Visual design tools for Postgresql
Previous Message Justin Clift 2003-02-02 09:55:16 Re: Website troubles