Bonjour,

Le 16/04/2014 06:06, Olivier Domarle a écrit :
Merci pour cette proposition d'aide qui permettrait certainement de résoudre
le problème, mais je ne vois pas comment faire sans commettre une entorse
aux règles de la CNIL.

Soit tu me fais confiance pour ne pas conserver la base au-delà du temps de recherche du pb. Soit tu mets en place une gepi sur une machine à toi et tu anonymes les infos (cf.plus bas).
A ne surtout pas faire sur ta base en production.

TRUNCATE TABLE acces_cdt;
TRUNCATE TABLE acces_cdt_groupes;
TRUNCATE TABLE acces_cn;
TRUNCATE TABLE acces_exceptionnel_matieres_notes;
TRUNCATE TABLE aid;
TRUNCATE TABLE aid_appreciations;
TRUNCATE TABLE aid_config;
TRUNCATE TABLE aid_familles;
TRUNCATE TABLE aid_productions;
TRUNCATE TABLE aid_public;
TRUNCATE TABLE annees_anterieures;
TRUNCATE TABLE archivage_aid_eleve;
TRUNCATE TABLE archivage_aids;
TRUNCATE TABLE archivage_appreciations_aid;
TRUNCATE TABLE archivage_disciplines;
TRUNCATE TABLE archivage_ects;
TRUNCATE TABLE archivage_eleves;
TRUNCATE TABLE archivage_eleves2;
TRUNCATE TABLE archivage_types_aid;
TRUNCATE TABLE ateliers_config;
TRUNCATE TABLE avis_conseil_classe;
TRUNCATE TABLE banque_cdt;
TRUNCATE TABLE cc_dev;
TRUNCATE TABLE cc_eval;
TRUNCATE TABLE cc_notes_eval;
TRUNCATE TABLE change_compte_droits;
TRUNCATE TABLE cn_cahier_notes;
TRUNCATE TABLE cn_conteneurs;
TRUNCATE TABLE cn_conteneurs_modele;
TRUNCATE TABLE cn_conteneurs_modele_conteneurs;
TRUNCATE TABLE cn_devoirs;
TRUNCATE TABLE cn_notes_conteneurs;
TRUNCATE TABLE cn_notes_devoirs;
TRUNCATE TABLE commentaires_types;
TRUNCATE TABLE commentaires_types_profs;
TRUNCATE TABLE communes;
TRUNCATE TABLE cours_non_assures;
TRUNCATE TABLE cours_non_assures_droits;
TRUNCATE TABLE cours_non_assures_filtrage_infos;
TRUNCATE TABLE ct_devoirs_documents;
TRUNCATE TABLE ct_devoirs_entry;
TRUNCATE TABLE ct_devoirs_faits;
TRUNCATE TABLE ct_documents;
TRUNCATE TABLE ct_entry;
TRUNCATE TABLE ct_private_entry;
TRUNCATE TABLE ct_sequences;
TRUNCATE TABLE ct_types_documents;
TRUNCATE TABLE d_dates_evenements;
TRUNCATE TABLE d_dates_evenements_classes;
TRUNCATE TABLE d_dates_evenements_utilisateurs;
TRUNCATE TABLE droits_acces_fichiers;
TRUNCATE TABLE droits_aid;
TRUNCATE TABLE droits_speciaux;
TRUNCATE TABLE droits_statut;
TRUNCATE TABLE droits_utilisateurs;
TRUNCATE TABLE eb_copies;
TRUNCATE TABLE eb_epreuves;
TRUNCATE TABLE eb_groupes;
TRUNCATE TABLE eb_param;
TRUNCATE TABLE eb_profs;
TRUNCATE TABLE eb_salles;
TRUNCATE TABLE ects_credits;
TRUNCATE TABLE ects_global_credits;
TRUNCATE TABLE edt_calendrier;
TRUNCATE TABLE edt_calendrier_manager;
TRUNCATE TABLE eleves_groupes_settings;
TRUNCATE TABLE ex_classes;
TRUNCATE TABLE ex_examens;
TRUNCATE TABLE ex_groupes;
TRUNCATE TABLE ex_matieres;
TRUNCATE TABLE ex_notes;
TRUNCATE TABLE gc_affichages;
TRUNCATE TABLE gc_divisions;
TRUNCATE TABLE gc_ele_arriv_red;
TRUNCATE TABLE gc_eleves_options;
TRUNCATE TABLE gc_options;
TRUNCATE TABLE gc_options_classes;
TRUNCATE TABLE gc_projets;
TRUNCATE TABLE infos_actions;
TRUNCATE TABLE infos_actions_destinataires;
TRUNCATE TABLE inscription_items;
TRUNCATE TABLE inscription_j_login_items;
TRUNCATE TABLE j_mentions_classes;
TRUNCATE TABLE j_professeurs_matieres;
TRUNCATE TABLE j_responsables_professeurs;
TRUNCATE TABLE j_signalement;
TRUNCATE TABLE ldap_bx;
TRUNCATE TABLE log;
TRUNCATE TABLE log_maj_sconet;
TRUNCATE TABLE matieres_app_corrections;
TRUNCATE TABLE matieres_app_delais;
TRUNCATE TABLE matieres_appreciations;
TRUNCATE TABLE matieres_appreciations_acces;
TRUNCATE TABLE matieres_appreciations_grp;
TRUNCATE TABLE matieres_appreciations_tempo;
TRUNCATE TABLE matieres_notes;
TRUNCATE TABLE mentions;
TRUNCATE TABLE message_login;
TRUNCATE TABLE messagerie;
TRUNCATE TABLE messages;
TRUNCATE TABLE miseajour;
TRUNCATE TABLE mn_ordre_accueil;
TRUNCATE TABLE mn_ordre_accueil_item;
TRUNCATE TABLE mod_alerte_divers;
TRUNCATE TABLE modeles_grilles_pdf;
TRUNCATE TABLE modeles_grilles_pdf_valeurs;
TRUNCATE TABLE notanet;
TRUNCATE TABLE notanet_app;
TRUNCATE TABLE notanet_avis;
TRUNCATE TABLE notanet_corresp;
TRUNCATE TABLE notanet_ele_type;
TRUNCATE TABLE notanet_lvr;
TRUNCATE TABLE notanet_lvr_ele;
TRUNCATE TABLE notanet_saisie;
TRUNCATE TABLE notanet_socle_commun;
TRUNCATE TABLE notanet_socles;
TRUNCATE TABLE notanet_verrou;
TRUNCATE TABLE observatoire;
TRUNCATE TABLE observatoire_comment;
TRUNCATE TABLE observatoire_config;
TRUNCATE TABLE observatoire_j_resp_champ;
TRUNCATE TABLE observatoire_niveaux;
TRUNCATE TABLE observatoire_suivi;
TRUNCATE TABLE pays;
TRUNCATE TABLE periodes_observatoire;
TRUNCATE TABLE plugin_MDcategories;
TRUNCATE TABLE plugin_MDdocs;
TRUNCATE TABLE plugin_MDgroups;
TRUNCATE TABLE plugin_MDlinks;
TRUNCATE TABLE plugin_MDparams;
TRUNCATE TABLE plugin_MDpermissions;
TRUNCATE TABLE plugin_MDsubcategories;
TRUNCATE TABLE plugin_MDusers;
TRUNCATE TABLE plugins;
TRUNCATE TABLE plugins_autorisations;
TRUNCATE TABLE plugins_menus;
TRUNCATE TABLE preferences;
TRUNCATE TABLE ref_wiki;
TRUNCATE TABLE rss_users;
TRUNCATE TABLE s_alerte_mail;
TRUNCATE TABLE s_autres_sanctions;
TRUNCATE TABLE s_avertissements;
TRUNCATE TABLE s_categories;
TRUNCATE TABLE s_communication;
TRUNCATE TABLE s_delegation;
TRUNCATE TABLE s_exclusions;
TRUNCATE TABLE s_incidents;
TRUNCATE TABLE s_lieux_incidents;
TRUNCATE TABLE s_mesures;
TRUNCATE TABLE s_natures;
TRUNCATE TABLE s_protagonistes;
TRUNCATE TABLE s_qualites;
TRUNCATE TABLE s_reports;
TRUNCATE TABLE s_retenues;
TRUNCATE TABLE s_sanctions;
TRUNCATE TABLE s_traitement_incident;
TRUNCATE TABLE s_travail;
TRUNCATE TABLE s_travail_mesure;
TRUNCATE TABLE s_types_avertissements;
TRUNCATE TABLE s_types_sanctions;
TRUNCATE TABLE s_types_sanctions2;
TRUNCATE TABLE salle_cours;
TRUNCATE TABLE signature_classes;
TRUNCATE TABLE signature_droits;
TRUNCATE TABLE signature_fichiers;
TRUNCATE TABLE sso_table_correspondance;
TRUNCATE TABLE synthese_app_classe;
TRUNCATE TABLE t_plan_de_classe;
TRUNCATE TABLE t_plan_de_classe_ele;
TRUNCATE TABLE temp_abs_import;
TRUNCATE TABLE temp_ele_classe;
TRUNCATE TABLE temp_etab_import;
TRUNCATE TABLE temp_gep_import;
TRUNCATE TABLE temp_gep_import2;
TRUNCATE TABLE temp_grp;
TRUNCATE TABLE temp_matieres_import;
TRUNCATE TABLE temp_resp_adr_import;
TRUNCATE TABLE temp_resp_pers_import;
TRUNCATE TABLE temp_responsables2_import;
TRUNCATE TABLE tempo;
TRUNCATE TABLE tempo2;
TRUNCATE TABLE tempo2_sso;
TRUNCATE TABLE tempo3;
TRUNCATE TABLE tempo3_cdt;
TRUNCATE TABLE tempo4;
TRUNCATE TABLE tempo5;
TRUNCATE TABLE tempo_utilisateurs;
TRUNCATE TABLE tentatives_intrusion;
TRUNCATE TABLE trombino_decoupe;
TRUNCATE TABLE trombino_decoupe_param;
TRUNCATE TABLE udt_corresp;
TRUNCATE TABLE udt_lignes;
TRUNCATE TABLE vocabulaire;
TRUNCATE TABLE vs_alerts_eleves;
TRUNCATE TABLE vs_alerts_groupes;
TRUNCATE TABLE vs_alerts_types;
UPDATE resp_pers SET mel='', tel_pers='', tel_port='', tel_prof='';
UPDATE resp_adr SET adr1='', adr3='', adr3='', adr4='', cp='', commune='';
UPDATE eleves SET no_gep='', naissance='2000-01-01';
update utilisateurs set password=md5('notes'),change_mdp='n';
update utilisateurs set salt='';
update utilisateurs set auth_mode='gepi';
update utilisateurs set email='';

Il y a peut-être des tables que tu n'as pas dans la liste de celles que je te propose de vider.
MySQL râlera, mais ce n'est pas grave.

Si tu colles ça dans un fichier TXT que tu nommes: FICHIER.SQL, tu peux faire:
mysql -f LA_BASE_MYSQL < FICHIER.SQL

Je répète:
A ne surtout pas faire sur ta base en production.


Cordialement,
--
Stephane Boireau
Collège Le Hameau - Bernay (27)
http://stephane.boireau.free.fr/gadgets/crobards.html
_________________________________________________________________________________
Documentation Gepi en ligne : http://www.sylogix.org/projects/gepi/wiki
Pour modifier ou résilier votre abonnement à cette liste :
https://lists.sylogix.net/mailman/listinfo/gepi-users

Répondre à