dbdiff utility

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rajesh Kapur

    #1

    dbdiff utility

    Does anyone have or know of a utility that will generate SQL to upgrade one
    MySQL database to look like another?
    For example 'dbdiff db1 db2' generates the SQL statements that can be
    applied to db1 to look just like db2.
    Any suggestions short of comparing the database schemas line by line?

    Thanks.


  • John

    #2
    Re: dbdiff utility


    Hi, Rajesh:

    Have you tried extracting the metadata, and then using a simple "diff"
    utility such as that which exists on Linux?

    John


    Rajesh Kapur wrote:
    [color=blue]
    > Does anyone have or know of a utility that will generate SQL to upgrade one
    > MySQL database to look like another?
    > For example 'dbdiff db1 db2' generates the SQL statements that can be
    > applied to db1 to look just like db2.
    > Any suggestions short of comparing the database schemas line by line?
    >
    > Thanks.
    >
    >[/color]

    Comment

    • John

      #3
      Re: dbdiff utility


      Hi, Rajesh:

      Have you tried extracting the metadata, and then using a simple "diff"
      utility such as that which exists on Linux?

      John


      Rajesh Kapur wrote:
      [color=blue]
      > Does anyone have or know of a utility that will generate SQL to upgrade one
      > MySQL database to look like another?
      > For example 'dbdiff db1 db2' generates the SQL statements that can be
      > applied to db1 to look just like db2.
      > Any suggestions short of comparing the database schemas line by line?
      >
      > Thanks.
      >
      >[/color]

      Comment

      • Rajesh Kapur

        #4
        Re: dbdiff utility

        Yes John, I have tried doing the diff. However, I still have to write the
        alter statement. I was hoping for a tool similar to the dbdiff that Informix
        User Group (www.iiug.org) has.... They have a huge arsenal of Informix tools
        there.... I wish there were similar tools available for MySQL.

        "John" <nosapm@topleve l.tld> wrote in message
        news:wvTzb.4709 $Oe5.1874@newsr ead2.news.atl.e arthlink.net...[color=blue]
        >
        > Hi, Rajesh:
        >
        > Have you tried extracting the metadata, and then using a simple "diff"
        > utility such as that which exists on Linux?
        >
        > John
        >
        >
        > Rajesh Kapur wrote:
        >[color=green]
        > > Does anyone have or know of a utility that will generate SQL to upgrade[/color][/color]
        one[color=blue][color=green]
        > > MySQL database to look like another?
        > > For example 'dbdiff db1 db2' generates the SQL statements that can be
        > > applied to db1 to look just like db2.
        > > Any suggestions short of comparing the database schemas line by line?
        > >
        > > Thanks.
        > >
        > >[/color][/color]


        Comment

        • Rajesh Kapur

          #5
          Re: dbdiff utility

          Yes John, I have tried doing the diff. However, I still have to write the
          alter statement. I was hoping for a tool similar to the dbdiff that Informix
          User Group (www.iiug.org) has.... They have a huge arsenal of Informix tools
          there.... I wish there were similar tools available for MySQL.

          "John" <nosapm@topleve l.tld> wrote in message
          news:wvTzb.4709 $Oe5.1874@newsr ead2.news.atl.e arthlink.net...[color=blue]
          >
          > Hi, Rajesh:
          >
          > Have you tried extracting the metadata, and then using a simple "diff"
          > utility such as that which exists on Linux?
          >
          > John
          >
          >
          > Rajesh Kapur wrote:
          >[color=green]
          > > Does anyone have or know of a utility that will generate SQL to upgrade[/color][/color]
          one[color=blue][color=green]
          > > MySQL database to look like another?
          > > For example 'dbdiff db1 db2' generates the SQL statements that can be
          > > applied to db1 to look just like db2.
          > > Any suggestions short of comparing the database schemas line by line?
          > >
          > > Thanks.
          > >
          > >[/color][/color]


          Comment

          Working...