Re: psql: could not connect to server: Network is

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: markos <el96645(at)mail(dot)ntua(dot)gr>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: psql: could not connect to server: Network is
Date: 2006-01-04 17:51:36
Message-ID: 3962.1136397096@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

markos <el96645(at)mail(dot)ntua(dot)gr> writes:
> psql -h localhost -U markulis
> psql: could not connect to server: Network is unreachable
> Is the server running on host "localhost" and accepting
> TCP/IP connections on port 5432?

Hm. "Network is unreachable" means that you have got a networking
problem not a database problem. You'll probably find that simple
commands like "ping localhost" don't work either. The problem could
be a DNS issue --- what does "nslookup localhost" say? If it comes
back with something reasonable, then you've got a kernel
misconfiguration issue, which I don't think I can help you with.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Alain Rodriguez Arias 2006-01-04 20:35:10 Re: NHibernate
Previous Message Tom Lane 2006-01-04 17:46:11 Re: What are these files?