This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

Installazione#

- Installare i seguenti pacchetti: - postgresql - postgresql-server a
rcpostgresql start
chkconfig postgresql on

su postgres
psql postgres
(in ubuntu: sudo -u postgres psql postgres)

postgres= create user root with superuser login;
CREATE ROLE
postgres= create user sqlgrey with password 'iehQ6Ffshvta93eP';
CREATE ROLE
postgres= create database sqlgrey owner sqlgrey;
eventualmente per settare encoding diverso (default è UTF-8) usare ENCODING = encoding (ad esempio 'ISO8859-1')

CREATE DATABASE
postgres=

Comandi base#

settare uno schema(db2prod):
SET search_path TO db2prod,public;
Connettere a DB:
psql -U nomeutente nomedb
Fare dump di intero sistema:
pg_dumpall > allDb.sql

Configurazioni#

  1. 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 RaffaelePedrini.