Bien entendu, tout est couvert par la GPL :-)
Démarrer la base de données et se connecter sous le user postgres :
su su - postgres initdb /etc/init.d/postgresql
Le fichier creation.log contient toutes les opérations qui ont été nécessaires pour créer la base avec postgresql. J’utilise postgres > 7.0
[pierre@machine]$ su Password: [root@machine]# su -l postgres [postgres@machine]$ createuser admindb Shall the new user be allowed to create databases? (y/n) n Shall the new user be allowed to create more new users? (y/n) y CREATE USER [postgres@machine]$ psql postgres=# create group saisie; CREATE GROUP postgres=# create group admin;
CREATE GROUP
postgres=# \q postgres=# create user pierre in group admin; CREATE USER
psql -c 'drop database qcv;'
ou :
dropdb qcv
createdb qcv psql qcv -f tablesQCV.sql psql qcv -f grantQCV.sql psql qcv -f initdata.sql psql qcv -f dataQCV.sql
[postgres@machine]$ psql qcv qcv=# COPY QUESTIONS from 'Data/QUESTIONS.txt'; COPY [postgres@machine]$ psql qcv qcv=# create user pierre in group saisie ; CREATE USER
[postgres@machine]$ pg_dump -s Data/dumpTables [postgres@machine]$ pg_dump -s Data/data12-04-2001.txt
Rechargement :
[postgres@machine]$ psql qcv -f Data/dumpTables [postgres@machine]$t=refthemes; psql qcv -t $t backups/$t`date +'%Y-%m-%d'`.txt
Analyse_QCM.sdw (starOffice) et schemaQCV.png expliquent ce que j’ai commencé à faire.
Je pense avoir mis l’essentiel.
Pierre Jarillon [email protected]