Re: Postgres 9.1 y Centos 6.3

From: Javier Aquino <JAquino(at)LexusEditores(dot)com>
To: Rodrigo Ruiz <rruizf(at)gmail(dot)com>
Cc: Miguel Angel Hernandez Moreno <miguel(dot)hdz(dot)mrn(at)gmail(dot)com>, Ayuda <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Postgres 9.1 y Centos 6.3
Date: 2012-12-13 18:50:56
Message-ID: 1355424656.4137.10.camel@javier-ntb
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

-h localhost puede entenderse como: IPV4 127.0.0.1:5432 o como
IPV6 ::1:5432, lo mas probable es que por defecto se use IPV6 (los
sistemas operativos modernos hacen esto), entonces tienes dos
alternativas:

1. conectarte con la opcion -h localhost4 (Para forzar a una conexión
con el protocolo IPV4) ó
2. Modificar el pg_hba.conf y habilitar IPV6 así:

host all all ::1/128 md5

Espero solucione tu problema.

Saludos y éxitos.

Javier.

El jue, 13-12-2012 a las 15:22 -0300, Rodrigo Ruiz escribió:
> El 13/12/2012 13:34, Miguel Angel Hernandez Moreno escribió:
>
> >
> > Rodrigo
> >
> >
> >
> > al psql agregale el -h localhost
> >
> >
> > debe de funcionar!!
> >
> >
> > y si puedes envia como tienes el IPv4 en el hba porfa
> >
> >
>
>
> Ok, le agregué -l localhost al comando y tampoco conectó.
>
> El pg_hba.conf es:
>
> # "local" is for Unix domain socket connections only
> local all all md5
> # IPv4 local connections:
> #host all all 127.0.0.1/32 md5
> host all all 0.0.0.0/0 md5
> # IPv6 local connections:
> #host all all ::1/128 ident
>
> Saludos.-
>
>
> --
> Rodrigo Ruiz Fuentes

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message José Fermín Francisco Ferreras 2012-12-13 23:28:44 consulta por fecha y hora
Previous Message Rodrigo Ruiz 2012-12-13 18:36:34 Re: Postgres 9.1 y Centos 6.3