GithubHelp home page GithubHelp logo

qcv's Introduction

QCV : Questions à choix variable

Bien entendu, tout est couvert par la GPL :-)

Installation de postgresql

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

Creation des utilisateurs/groupes

[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

Destruction de la BD QCV

psql -c 'drop database qcv;'

ou :

dropdb qcv

Création de la BD QCV

createdb qcv
psql qcv -f tablesQCV.sql
psql qcv -f grantQCV.sql
psql qcv -f initdata.sql
psql qcv -f dataQCV.sql

Rechargement par copy sous psql

[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

Utilisation de pg_dump

[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

Modèle de données

Analyse_QCM.sdw (starOffice) et schemaQCV.png expliquent ce que j’ai commencé à faire.

Je pense avoir mis l’essentiel.

Auteur

Pierre Jarillon [email protected]

qcv's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.