MySQL database change tracking

半世苍凉 提交于 2020-01-02 07:05:27

问题


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.


回答1:


There is a simple solution:

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



回答2:


Toad for MySQL has a great schema comparison tool

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




回答3:


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




回答4:


mysql-diff compares tables, but not stored procedures yet.



来源:https://stackoverflow.com/questions/763301/mysql-database-change-tracking

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!