Leggimi Jedecma *******

Attenzione: nel 2023 variata user key per introduzione nuovo elemento!!!

Installazione Jedecma ex-novo

- Installare MySQL, creare database jedecma e impostare utenti, 
  tra cui un utente iniziale "jedecma" con password "jedecma"
  con tutti i privilegi sul database (modificabile in futuro)
- copiare jedecma_export nella cartella desiderata (es c:\jedecma)
- modificare file parametri impostando 
	wrkpath= percorso installazione
	splash= percorso file spash.jpg nella cartella installazione
	userkey= nuova key generata per l'utente con il programma activationkey.jar
	
- configurare il database eseguendo il comando:
NOTA BENE: IL COMANDO CANCELLA IL DB ESISTENTE !!!
msqlc --user=[user] --password=[password] jedecma < jedecma_2xx_db.sql 

Eseguire Jedecma e verificare impostazioni.
(utente jedecma, password jedecma)

Per caricare la tabella CAP e Comuni:
da Jedecma, Gestione Dati, caricando ed eseguendo il file: tblccdb.sql



Istruzioni per il passaggio da ver. 1.3.x (user key) a ver. 2.0.x (ampl.tabelle, gest.immagini)

FARE UNA COPIA DELL'AMBIENTE ESISTENTE PRIMA DI MODIFICARLO!!!

- copiare jedecma.jar, Messages*.properties, *.sql, splash.jpg, NOTICE, LICENSE
- modificare file parametri aggiungendo:
	imgpath=  (path folder sul server, dove collocare le immagini)
	imgtmp=   (path folder sulla macchina ecografica, da cui prelevare le immagini)
- modificare la struttura del database. Questo può essere fatto
  a) eseguendo il comando: msqlc --user=[user] --password=[password] < update_jedecma_20x.sql
  b) da Jedecma, Gestione Dati, caricando ed eseguendo il file: update_jedecma_20x.sql

Eseguire Jedecma e verificare impostazioni.






--- vecchie versioni 

Istruzioni per il passaggio alla versione 1.3.0 (user key, ecc)

FARE UNA COPIA DELL'AMBIENTE ESISTENTE PRIMA DI MODIFICARLO!!!

copiare jedecma.jar, Messages*.properties, *.sql

- modificare file parametri aggiungendo:
country=
language=
impostando la pw per il db criptata:
dbpass=YWRtaW4\=
impostando l'activation key criptata:
userkey=MDAwMTExMTExMDAwMzExMjIwOTk3

- modificare la tabella utenti:
+--------+----------+--------------+--------+
| userno | username | userpw       | userpr |
+--------+----------+--------------+--------+
|      1 | jedecma  | amVkZWNtYQ== | 1      |
+--------+----------+--------------+--------+
msqlc --user=[user] --password=[password] < update_users.sql

eseguire jedecma

aggiungere tabella tblccdb al database da Strumenti->Gestione dati

(successivamente generare una nuova key con il programma activationkey.jar)


Note per salvataggi e ripristini del database

Per eseguire il dump del database o di una tabella su un file txt:
#  mysqldump --user=[user] --password=[password] jedecma EDECMA > /tmp/x.sql
in questo esempio si copia solo la tabella EDECMA
per copiare tutto il database:
#  mysqldump --user=[user] --password=[password] jedecma > /tmp/x.sql

il file  puo' essere ricaricato (su database vuoto) con:
$ mysql --user=[user] --password=[password] jedecma < /tmp/x.sql

Per eseguire un dump su base regolare, consentendo il ripristino dei dati:
mysqldump --user=[user] --password=[password] -t --tab="/tmp" jedecma EDECMA --where="datupd>='2004-03-29'"
In questo modo si crea un file con nome=nome-tabella,
contenente solo i dati, separati da TAB.

Per reimportare i dati, sovrascrivendo gli esistenti:
$ mysqlimport --user=[user] --password=[password] jedecma --replace  /tmp/EDECMA.txt
