List:General Discussion« Previous MessageNext Message »
From:mark addison Date:October 2 2007 11:14am
Subject:RE: DB Schema Comparison Utility ?
View as plain text  
On Mon, 2007-10-01 at 12:56 -0700, Daevid Vincent wrote:
> This has been asked for many many times on this list, not sure why mySQL AB
> doesn't just release a command line tool like a 'mysql diff' and also a
> 'mysql lint'. The lint one should be totally trivial for them to do, as they
> already have a SQL parser! I can't tell you how many times our daily build
> was broken by a missing semi-colon or some other SQL syntax error. We run
> all commits through "php -l" and ruby's checker, but mysql is the only one
> we have to sweat over.
> 
> While I'm glad that pretty GUI tools like Upscene's exist, that doesn't do
> us any good on a linux build system where it does an "svn checkout", runs
> automated BVT tests, compiles code, uploads to a daily build directory, etc.
> 
> We need command line tools that run on linux.
> 
> :( 
 
:) Theres a perl tool called SLQ Fairy. Its main use is translating DDL
to other dialects, html, images, templates etc but it also has a very
handy sqlt-diff that does want you want from the command line.

http://search.cpan.org/~jrobinson/SQL-Translator-0.08001/
http://sqlfairy.sourceforge.net/
# cpan SQL::Translater

hth,
mark

> > 
 





MARK ADDISON
WEB DEVELOPER

200 GRAY'S INN ROAD
LONDON
WC1X 8XZ
UNITED KINGDOM
T +44 (0)20 7430 4678
F 
E MARK.ADDISON@stripped
WWW.ITN.CO.UK

P  Please consider the environment. Do you really need to print this email?
-----Original Message-----

> > From: John Comerford [mailto:johnc@stripped] 
> > Sent: Thursday, September 27, 2007 9:49 PM
> > To: mysql@stripped
> > Subject: DB Schema Comparison Utility ?
> > 
> > Hi Folks,
> > 
> > I am new to MySQL.  We have a development environment where we have 
> > three systems
> > 
> > 1) Developement Database on Machine A
> > 2) Test Databasae on Machine B
> > 3) Live Database on Machine C
> > 
> > So we make changes to the Developement Database, then move 
> > them to test 
> > then to live.  My question is, is there a way of 
> > automatically migrating 
> > the changes from Dev to Test, Test to Live ?
> > 
> > I have worked with a DB which had an admin function wherein you could 
> > connect two databases and it would run a comparison between the two 
> > databases and produce a file of schema differences which you could 
> > import to make the two DB schema's the same.  Is there something like 
> > this for MySQL ?
> > 
> > TIA,
> >   John
> > 
> > -- 
> > MySQL General Mailing List
> > For list archives: http://lists.mysql.com/mysql
> > To unsubscribe:    
> > http://lists.mysql.com/mysql?unsub=1
> > 
> > 
> 
>
Please Note:

 

Any views or opinions are solely those of the author and do not necessarily represent 
those of Independent Television News Limited unless specifically stated. 
This email and any files attached are confidential and intended solely for the use of the
individual
or entity to which they are addressed. 
If you have received this email in error, please notify postmaster@stripped 

Please note that to ensure regulatory compliance and for the protection of our clients and
business,
we may monitor and read messages sent to and from our systems.

Thank You.

Thread
DB Schema Comparison Utility ?John Comerford28 Sep
  • Re: DB Schema Comparison Utility ?Martijn Tonies28 Sep
  • RE: DB Schema Comparison Utility ?Daevid Vincent1 Oct
    • RE: DB Schema Comparison Utility ?mark addison2 Oct
    • Re: DB Schema Comparison Utility ?Eric Frazier3 Oct
      • Re: DB Schema Comparison Utility ?Baron Schwartz3 Oct