V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
MySQL 5.5 Community Server
MySQL 5.6 Community Server
Percona Configuration Wizard
XtraBackup 搭建主从复制
Great Sites on MySQL
Percona
MySQL Performance Blog
Severalnines
推荐管理工具
Sequel Pro
phpMyAdmin
推荐书目
MySQL Cookbook
MySQL 相关项目
MariaDB
Drizzle
参考文档
http://mysql-python.sourceforge.net/MySQLdb.html
atan
V2EX  ›  MySQL

有什么适合MYSQL的版本控制吗?

  •  
  •   atan ·
    tanshiqi · 2012-11-25 00:14:17 +08:00 · 5938 次点击
    这是一个创建于 4168 天前的主题,其中的信息可能已经有所发展或是发生改变。
    程序用git很方便,但是数据库有什么解决方案吗?
    比如数据库的结构或者数据更新,可以做一次提交; 万一数据库有错误,或者数据丢失,也可以回滚到之前的数据库状态
    7 条回复    1970-01-01 08:00:00 +08:00
    notedit
        1
    notedit  
       2012-11-25 01:34:32 +08:00
    在用sqlalchemy-migerate 不过是配合着postgresql在用 mysql支持的也很好
    Livid
        2
    Livid  
    MOD
       2012-11-25 01:35:29 +08:00   ❤️ 1
    fire9
        3
    fire9  
       2012-11-25 10:23:42 +08:00   ❤️ 1
    做成schema.sql文件,然后用git管理。
    ElmerZhang
        4
    ElmerZhang  
       2012-11-25 11:20:49 +08:00
    楼主是要定期对数据做snapshot吧?比较成熟的办法是用lvm,定期做个snapshot另存下来。我们最近正在研究nilfs,用这文件系统来对数据做snapshot简直是爽到爆。
    atan
        5
    atan  
    OP
       2012-11-25 21:25:41 +08:00
    @Livid 刚好我也看到这个,不知道操作性怎么样
    Frannk
        6
    Frannk  
       2012-11-27 10:38:51 +08:00
    dbv还不错哦 但是没有降级的方案
    hoogle
        7
    hoogle  
       2014-04-02 15:20:43 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3160 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 14:47 · PVG 22:47 · LAX 07:47 · JFK 10:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.