Re: error en pg_connect

From: Date: Mon, 01 Aug 2005 06:52:09 +0000
Subject: Re: error en pg_connect
References: 1 2  Groups: php.general.es 
Request: Send a blank email to general-es+get-55503@lists.php.net to get a copy of this message
Gracias a todos por vuestra respuesta. Gracias a Diego Angullo, por el tema de las contraseñas, pero no es eso. Fernando Zapata me idce que revise el archivo pg_hba.conf. En mi sistema operativo, SuSE 9.3, aparece en lugar de este archivo otro llamado pg_hba.conf.sample, lo que he hecho es renombrarlo a pg_hba.conf. Este archivo es como sigue: ============================================================================= # 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. # @authcomment@ # TYPE DATABASE USER CIDR-ADDRESS METHOD @remove-line-for-nolocal@# "local" is for Unix domain socket connections only @remove-line-for-nolocal@local all all @authmethod@ # IPv4 local connections: host all all 127.0.0.1/32 @authmethod@ # IPv6 local connections: host all all ::1/128 @authmethod@ =============================================================================== Y la verdad no se si estara bien. Lo que mas mosca me tiene es que visitando el archivo /var/log/postgresql me da un error diciendo q no se admiten conexiones por el puerto 113.... Y yo me conecto por el 5432... El error es este: LOG: could not connect to Ident server at address "127.0.0.1", port 113: Connection refused FATAL: Ident authentication failed for user "torpedo" Y la cadena de conexion que uso es: $cadena_conexion = "host=localhost port=5432 dbname=midb user=torpedo";

« previous php.general.es (#55503) next »