Accesos a postgres desde php

From: Date: Wed, 30 Apr 2003 22:12:55 +0000
Subject: Accesos a postgres desde php
Groups: php.general.es 
Request: Send a blank email to general-es+get-35765@lists.php.net to get a copy of this message
Al intentar conectarme a postgres desde php me da este error Warning: pg_connect() unable to connect to PostgreSQL server: could not connect to server: Conexión rehusada Is the server running on host localhost and accepting TCP/IP connections on port 5432? in /var/www/html/prueba.php on line 5 Warning: pg_last_error(): supplied argument is not a valid PostgreSQL link resource in /var/www/html/prueba.php on line 6 No se pudo connectar Al intentar conectarme por otro lado me dice: psql: could not connect to server: No existe el fichero o directorio Is the server runninin locally and accepting connections on unix domain socket "/tmp/.s.PGSQL.5432"

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