In order to make your workaround less tedious you can write a shell script that dumps the structures of all 50 databases
basically: for db in $(mysql [opts] -e 'show databases'); do mysqldump [opts] $db Done Olaf On 10/5/08 10:15 PM, "Uma Bhat" <[EMAIL PROTECTED]> wrote: > Hey guys! > > We are in progress of *optimizing* and designing the existing mysql database > enviromnent on *linux*. And need help in comaparing schema of 50 > databases from the same mysql instance. > > *MySQL version 5.0* > > *SCENARIO* - There are 50 mysql databases (which we have been informed that > is of same schema - we are not sure) > We are planning to consolidate the data spread across these 50 databases > into a SINGLE database . Hence before doing this, *we want to ensure that > there is ABSOLUTE *no* difference in schema between each of them. (all > datatypes, and other such database objects, engines, MUST be IDENTICAL).* > > *QUESTION* - what's the *EASIET way to compare* the schema's of ALL these 50 > databases ? > > *WORKAROUND* i could think of - taking *mysqldump* of database (with * > --no-data* option) and compare with *'diff'* UNIX command. > > BUT, this is a VERY TEDIOUS to carry out this process for 50 databases!!! > > > *Are there any tools available* to accomplish this task? > > > Many Thanks! > Uma ----------------------------------------- Confidentiality Notice: The following mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. The recipient is responsible to maintain the confidentiality of this information and to use the information only for authorized purposes. If you are not the intended recipient (or authorized to receive information for the intended recipient), you are hereby notified that any review, use, disclosure, distribution, copying, printing, or action taken in reliance on the contents of this e-mail is strictly prohibited. If you have received this communication in error, please notify us immediately by reply e-mail and destroy all copies of the original message. Thank you. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]