[Db] differenze tra due db

Daniele Paoni daniele-ml a libertyline.it
Mer 4 Apr 2007 17:27:06 CEST


On Wed, 2007-04-04 at 16:42 +0200, Marcello Vezzelli wrote:
> Ciao a tutti,
> qualcuno è a conoscenza di un tool in grado di analizzare le
> strutture 
> di due db mysql e produrre uno script sql con le differenze?
> Il tutto senza toccare i dati.
> 
> Io ho trovato dbdiff (http://rubyforge.org/projects/dbdiff/) ma non 
> avrei in programma di installarmi ruby con annessi e connessi.
> 
> DbDiff performs a diff between two databases (currently MySQL), 
> generates the necessary SQL to alter the target database and apply
> the 
> changes in the proper order to satisfy any constraints that exist - 
> while preserving the data in the target database.
> 
> L'obiettivo è esattamente questo.


http://www.adamspiers.org/computing/mysqldiff/

E' in perl, funziona abbastanza bene se non usi foreign keys.
Ci vorrebbe qualcuno che mastica un po di perl per aggiornarlo alle
nuove features di mysql.

Ciao
			Daniele



Maggiori informazioni sulla lista Db