Tracking MySQL Database Changes

What tools do you use to track changes to your MySQL database?
I am currently participating in a project where we use a simple text file (the version is controlled via SVN), in which we manually add SQL statements when making changes to the database.
Many changes magically disappear every time and then, and now we are looking for the best way to change the tracking of our database.

EDIT:
One thing I forgot to mention is that we use stored procedures and functions, so not only the database structure we want to track changes to / version controll.

+3
source share
4 answers

There is a simple solution:

  • Make all changes to the database schema and static data through scripts
  • Version controls scripts
+8
source

Toad for MySQL has a great schema comparison tool

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

+1
source

mysql-diff compares tables, but does not yet store procedures.

0
source

Source: https://habr.com/ru/post/1706634/


All Articles