[Gfoss] postgres 8.4 sotto ubuntu 11.10 - non si può connettere al server

Sandro Santilli strk a keybit.net
Sab 4 Feb 2012 17:57:49 CET


On Sat, Feb 04, 2012 at 01:10:56PM +0100, Luca Mandolesi wrote:
> Se da terminale come root lancio psql ricevo questo errore.
> 
> psql: could not connect to server: File o directory non esistente
>     Is the server running locally and accepting
>     connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5433"?
> 
> So per certo che il mio server gira sulla porta 5432...mi ci collego con
> pgAdmin...

"accepting connections on Unix domain socket" e' la chiave.
Prova ad esportare PGHOST=localhost, che magari e' il modo
in cui si collega pgAdmin.

> c'è modo per indirizzare psql alla porta corretta?

psql --help 
Vedi --host e --port

--strk;

  ,------o-. 
  |   __/  |    Thank you for PostGIS-2.0 Topology !
  |  / 2.0 |    http://www.pledgebank.com/postgistopology
  `-o------'



Maggiori informazioni sulla lista Gfoss