MySQL database change tracking

fredrik picture fredrik · Apr 18, 2009 · Viewed 10.4k times · Source

What tools are you using to track changes in your MySQL database?
Currently I'm in a project where we use a plain text-file (version controlled via SVN) in which we manually add SQL statements when making changes to the database.
Many of the changes magically disappears every now and then, and we are now looking for a better way to change track our database.

EDIT:
One thing that I forgot to mention, we are using stored procedures and functions, so it's not only the database structure that we want to track changes on / version controll.

Answer

anon picture anon · Apr 18, 2009

There is a simple solution:

  • Make all changes to the database schema and static data via scripts
  • Version control the scripts