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
Livid
V2EX  ›  MySQL

Build latest xtrabackup on Mac OS X

  •  
  •   Livid · 2014-05-24 18:15:13 +08:00 · 7905 次点击
    这是一个创建于 3866 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Since Percona doesn't provide recent builds of xtrabackup for OS X, I decided to try to build my own. It turned out to be pretty easy once you have all the tools needed.

    Things you will need:

    Xcode, Command Line Tools, Homebrew

    Steps:

    1. brew install libgcrypt , you may need to `ln -s 1.13 1.12` under /usr/local/Cellar/libgpg-error if you saw libgpg-error related error during build.

    2. Get latest source code of xtrabackup from:

    http://www.percona.com/downloads/XtraBackup/LATEST/source/

    3. tar zxvf percona-xtrabackup-2.1.9.tar.gz and run:

    AUTO_DOWNLOAD="yes" ./utils/build.sh innodb55

    If you need other support than InnoDB 5.5, please look into docs here:

    http://www.percona.com/doc/percona-xtrabackup/2.1/installation/compiling_xtrabackup.html

    4. Copy innobackupex / xtrabackup_55 / xbstream from ./ and ./src/ to /usr/local/bin/

    You can download my compiled binaries here:

    http://static.v2ex.com/xtrabackup/osx/
    5 条回复    2014-05-26 13:36:04 +08:00
    julyclyde
        1
    julyclyde  
       2014-05-24 20:50:13 +08:00
    你现在用os x做mysql服务器了?
    caonan
        2
    caonan  
       2014-05-24 23:09:20 +08:00
    @julyclyde V站现在跑在一台垃圾桶里。
    Livid
        3
    Livid  
    MOD
    OP
       2014-05-25 11:15:02 +08:00
    @julyclyde 有的时候,为了试验,把 OS X 上的数据库备份后导入 Vagrant 也会需要这个工具。
    lm902
        4
    lm902  
       2014-05-25 11:42:19 +08:00
    @Livid 为何不直接复制数据
    time | cp /path/to/mysql/data/file
    julyclyde
        5
    julyclyde  
       2014-05-26 13:36:04 +08:00
    @lm902 你那样得关闭数据库服务才能安全复制
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3201 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 00:41 · PVG 08:41 · LAX 16:41 · JFK 19:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.