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.
There is a simple solution:
- Make all changes to the database schema and static data via scripts
- Version control the scripts
Toad for MySQL has a great schema comparison tool
I think you need something like this (I test it for Firebird and it works very well) : http://www.upscene.com/products.audit.index.php I thought there was a MySQL version but NO :(
for MySQL, I see just this : http://solutions.mysql.com/solutions/partner.php?partner=1532
But if it is just for development, I think that the answer given here is good
mysql-diff compares tables, but not stored procedures yet.
来源:https://stackoverflow.com/questions/763301/mysql-database-change-tracking