[FLUG-Tech] impossibile connettersi al database postgres

Maurizio Totti maurizio.totti@gmail.com
Ven 14 Giu 2013 23:07:53 CEST


Ciao, scusa dirņ una stupidaggine, ma sei sicuro che il tuo pg sia in
ascolto sulla 5432? Sulle debian/ubuntu puoi avre + versioni
contemporaneamente id il pacchetto di installazione procede usando la porta
5433 etc per le versioni installate successivamente. Se nel tuo upgrade
eventualmente hai installato un postgresql + nuovo.
Se quello che scrivo non sorte risultato scrivi su
http://lists.psql.it/mailman/listinfo/postgresql-it
Ciao


2013/6/14 Massimiliano Cosimelli <m.cosimelli@gmail.com>

> Ciao a tutti,
>
> ho aggiornato un fax server a wheezy, e non riesco ad accedere al database
> postgresql 9.1
>
> Hylafax funziona regolarmente. il server PostgreSQL č in funzione e in
> ascolto su tutti gli indirizzi.
>
> Quando perņ, con l'utente postgres, cerco di creare un db dove mettere la
> tabella per la condivisione dello stato di lettura come spiegato su questa
> guida, http://files.yajhfc.de/doc/yajhfc-workgroup.shtml , ottengo questo
> messaggio di errore
>
> postgres@Idra:/etc/postgresql/9.1/main$ createdb
> createdb: impossibile connettersi al database template1: connessione al
> server fallita: File o directory non esistente
>         Verifica che il server locale sia in funzione e che
>         accetti connessioni sul socket di dominio Unix
> "/var/run/postgresql/.s.PGSQL.5432"
>
> il file di configurazione pg_hba.conf č il seguente:
>
> # PostgreSQL Client Authentication Configuration File
> # ===================================================
> #
> [...]
>
> # Put your actual configuration here
> # ----------------------------------
> #
> # If you want to allow non-local connections, you need to add more
> # "host" records.  In that case you will also need to make PostgreSQL
> # listen on a non-local interface via the listen_addresses
> # configuration parameter, or via the -i or -h command line switches.
>
>
>
>
> # DO NOT DISABLE!
> # If you change this first entry you will need to make sure that the
> # database superuser can access the database using some other method.
> # Noninteractive access to all databases is required during automatic
> # maintenance (custom daily cronjobs, replication, and similar tasks).
> #
> # Database administrative login by Unix domain socket
> local   all             postgres                                peer
>
> # TYPE  DATABASE        USER            ADDRESS                 METHOD
>
> # "local" is for Unix domain socket connections only
> local   all             all                                     peer
> # IPv4 local connections:
> host    all             all             127.0.0.1/32            md5
> # IPv6 local connections:
> host    all             all             ::1/128                 md5
> # Allow replication connections from localhost, by a user with the
> # replication privilege.
> local   replication     postgres                                peer
> host    replication     postgres        127.0.0.1/32            md5
> host    replication     postgres        ::1/128                 md5
>
> host    all     all     10.0.1.0/24 md5
>
>
> Grazie,
> Massimiliano
>
> --
>
>
> _______________________________________________
> FLUG - Discussioni tecniche - flug-tech@lists.linux.it
> URL: http://lists.linux.it/listinfo/flug-tech
> Archivio: http://lists.linux.it/pipermail/tech
>



-- 
Maurizio Totti
-------------- parte successiva --------------
Un allegato HTML č stato rimosso...
URL: <http://lists.linux.it/pipermail/flug-tech/attachments/20130614/6c596ac9/attachment.html>


Maggiori informazioni sulla lista flug-tech