{Installare i pacchetti postgresql postgresql-client postgresql-contrib
shell di postgress:
su postgres psql postgres
(in ubuntu: sudo -u postgres psql postgres)
ENCODING = encoding (ad esempio 'ISO8859-1')
- creare super utente (da valutare)
- creare utente
- creare database
ENCODING = encoding (ad esempio 'ISO8859-1')
- creare schema
- abilitare connessioni in entrata
- editare /etc/postgresql/8.3/main/pg_hba.conf (client authentication)
- TYPE DATABASE USER CIDR-ADDRESS METHOD
- auth-method
Comandi base#
settare uno schema(TUOSCHEMA):SET search_path TO TUOSCHEMA,public;Connettere a DB:
psql -U nomeutente nomedbFare dump di intero sistema:
pg_dumpall > allDb.sql
Configurazioni#
- editare /etc/postgresql/8.3/main/pg_hba.conf ed aggiungere le proprie regole
ad esempio per accesso tuo utente: local all dbuser trust da che rete: host all all 192.168.0.0/24 trust
Add new attachment
Only authorized users are allowed to upload new attachments.
«
This particular version was published on 14-Apr-2010 14:30 by Paolo Cerletti.