MySQL数据库变更跟踪 [英] MySQL database change tracking

查看:306
本文介绍了MySQL数据库变更跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您使用什么工具来跟踪MySQL数据库中的更改?
当前我在一个项目中,我们使用一个纯文本文件(通过SVN控制版本),在其中对数据库进行更改时手动添加SQL语句.
许多更改现在都神奇地消失了,然后,我们现在正在寻找一种更好的方法来更改对数据库的跟踪.


我忘记提到的一件事,我们正在使用存储过程和函数,因此,我们不仅要跟踪/版本控制项上的更改的数据库结构.

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.


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:

  • 通过脚本对数据库架构和静态数据进行所有更改
  • 版本控制脚本

这篇关于MySQL数据库变更跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆