Codificación en Postgres 8.4
GENERAMOS LAS LOCALES
dpkg-reconfigure locales
ESCOGEMOS
es_ES@euro ISO-8859-15
DETENEMOS SERVIDOR DE POSTGRESQL
/etc/init.d/postgresql stop
renombrar o eliminar los directorios originales
rm /var/lib/postgresql/8.4/main/ -r
rm /etc/postgresql/8.4/main/ -r
CREANDO EL CLUSTER CON
CODIFICACION
es_ES@euro
pg_createcluster 8.4 main --locale=es_ES@euro
iniciar el servidor
/etc/init.d/postgresql start
COLOCAMOS CONTRASEÑA POSTGRES
etc/postgresql/8.4/main/ pg_hba.conf y postgres.conf
pg_hba.conf
pg_hba.conf
nano /etc/postgresql/8.4/main/pg_hba.conf
Database administrative login by UNIX sockets
local all postgres md5
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
host all all 192.999.0.0/0 md5
postgres.conf
nano /etc/postgresql/8.4/main/postgres.conf
listen_addresses = 'localhost' CAMBIO CON listen_addresses = '*'
REINICIAMOS POSTGRES
/etc/init.d/postgresql restart

No hay comentarios:
Publicar un comentario