phpMyDiff – Compare mysql database schema and data

At work I’ve been maintaining a number of development areas and needed a way to compare database changes so that I didn’t overwrite a clients changes with my new/updated data from developing a new feature.

There seemed to be many ways of comparing the schema of two databases, but nothing to compare the changes in data (unless I was looking in the wrong places). I decided to write something that would help me out and have released it publicly.

You provide the connection details of two databases (server, username, password, name),  select the tables you would like to compare and hit “Compare”. The resulting page is a list of all schema and data changes.

There are plans to style the application (at the moment its simple blocks and tables) and more importantly, allow you to select which differences you would like to apply before creating a .sql diff file.

If its something you’re interested in, trying check out the google code page for the project. Its currently in beta with better performance, stability and functionality to come!

phpMyDiff at Google Code

This entry was posted in Googled, Web dev. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

3 Comments

  1. Itamar
    Posted March 2, 2010 at 8:45 pm | Permalink

    hi, you can use third party tool for that, although its not free it does a terrific job of comparing\migrating data.
    Nob Hill’s Compare – http://www.nobhillsoft.com/NHDBCompare.aspx

  2. Cohen
    Posted March 2, 2010 at 11:38 pm | Permalink

    Yeah, I did find the Nob Hill software, as well as a number of other shareware/commercial products. The aim with phpMyDiff is to create a free alternative, that is, when I get round to writing the export diff functionality.

    I for one wouldn’t want to pay $99 for infrequently comparing database changes. :)

  3. Posted May 22, 2010 at 9:29 am | Permalink

    Hi,
    Thanks a lot for this tool, just what I needed.
    Generating sql code would be fantastic.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

  • Categories

  • Archives