Sunday, May 25, 2008

[pgsql-es-ayuda] Configuración de Postgres en un Server de Hosting

Estimados
 
Actualmente estoy en un Proyecto para un Cliente, el cual no tiene un Servidor, y debido a que la aplicación que desarrollaremos está en PHP, este Cliente optó por alquilar un Hosting. Este Hosting es el tipico que se contrata para webs. Bueno el tema despues de instalar Postgres, deseo conectarme desde PgAdmin y me da el siguiente error que aun no he podido solucionar:
 
Access to database denied
The server doesn't grant access to the database: the server reports
FATAL: no pg_hba.conf entry for host "200.37.126.89", user "ats_postgres", database "postgres", SSL off
To access a database on a PostgreSQL server, you first have to grant primary access to the server for your client (Host Based Authentication). PostgreSQL will check the pg_hba.conf file if a pattern that matches your client address / username / database is present and enabled before any SQL GRANT access control lists are evaluated.
The initial settings in pg_hba.conf are quite restrictive, in order to avoid unwanted security holes caused by unreviewed but mandatory system settings. You'll probably want to add something like
host all all 192.168.0.0/24 md5
This example grants MD5 encrypted password access to all databases to all users on the private network 192.168.0.0/24.
You can use the pg_hba.conf editor that is built into pgAdmin III to edit the pg_hba.conf configuration file. After changing pg_hba.conf, you need to trigger a server configuration reload using pg_ctl or by stopping and restarting the server process.

Gracias de antemano! Saludos!

Atentamente

Luis Alberto Vargas Miranda

----------------------------------------------
(51) (54) - 9690757 (Movistar)
(51) (54) - 9122312 (Claro)
(51) (1) - 94001131 (Nextel)
(51*400*1131) (Nextel Conexión Directa)
----------------------------------------------



Discover the new Windows Vista Learn more!

No comments: