Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MySQL database change tracking

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.

like image 747
fredrik Avatar asked Sep 16 '26 08:09

fredrik


2 Answers

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

http://www.quest.com/toad-for-mysql/

like image 27
Petah Avatar answered Sep 17 '26 22:09

Petah