1)源码编译安装

1.下载 mydumper源码
2.解压
[mysql@localhost ~]$ tar -xvf mydumper-0.9.1.tar
mydumper-0.9.1/CMakeLists.txt
mydumper-0.9.1/README
mydumper-0.9.1/binlog.c
mydumper-0.9.1/binlog.h
mydumper-0.9.1/cmake/
mydumper-0.9.1/common.h
mydumper-0.9.1/config.h.in
mydumper-0.9.1/docs/
mydumper-0.9.1/g_unix_signal.c
mydumper-0.9.1/g_unix_signal.h
mydumper-0.9.1/mydumper.c
mydumper-0.9.1/mydumper.h
mydumper-0.9.1/myloader.c
mydumper-0.9.1/myloader.h
mydumper-0.9.1/server_detect.c
mydumper-0.9.1/server_detect.h
mydumper-0.9.1/cmake/modules/
mydumper-0.9.1/cmake/modules/CppcheckTargets.cmake
mydumper-0.9.1/cmake/modules/FindGLIB2.cmake
mydumper-0.9.1/cmake/modules/FindMySQL.cmake
mydumper-0.9.1/cmake/modules/FindPCRE.cmake
mydumper-0.9.1/cmake/modules/FindSphinx.cmake
mydumper-0.9.1/cmake/modules/Findcppcheck.cmake
mydumper-0.9.1/cmake/modules/Findcppcheck.cpp
mydumper-0.9.1/docs/CMakeLists.txt
mydumper-0.9.1/docs/_build/
mydumper-0.9.1/docs/_static/
mydumper-0.9.1/docs/authors.rst
mydumper-0.9.1/docs/compiling.rst
mydumper-0.9.1/docs/examples.rst
mydumper-0.9.1/docs/files.rst
mydumper-0.9.1/docs/index.rst
mydumper-0.9.1/docs/mydumper_usage.rst
mydumper-0.9.1/docs/myloader_usage.rst
mydumper-0.9.1/docs/_build/conf.py.in
mydumper-0.9.1/docs/_build/sources.cmake.in
3.cmake 编译
[mysql@localhost ~]$ cd /u01/mydumper-0.9.1/
[mysql@localhost mydumper-0.9.1]$ cmake .
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /bin/cc
-- Check for working C compiler: /bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /bin/c++
-- Check for working CXX compiler: /bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Using mysql-config: /u01/my3306/bin/mysql_config
-- Found MySQL: /u01/my3306/include, /u01/my3306/lib/libmysqlclient.so;/usr/lib64/libpthread.so;/usr/lib64/libm.so;/usr/lib64/libssl.so;/usr/lib64/libcrypto.so;/usr/lib64/libdl.so
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
-- Found PkgConfig: /bin/pkg-config (found version "0.27.1")
-- checking for one of the modules 'glib-2.0'
-- checking for one of the modules 'gthread-2.0'
-- checking for module 'libpcre'
-- found libpcre, version 8.32
-- Found PCRE: /usr/include CMake Warning at docs/CMakeLists.txt:9 (message):
Unable to find Sphinx documentation generator -- ------------------------------------------------
-- MYSQL_CONFIG = /u01/my3306/bin/mysql_config
-- CMAKE_INSTALL_PREFIX = /usr/local
-- BUILD_DOCS = ON
-- WITH_BINLOG = OFF
-- RUN_CPPCHECK = OFF
-- Change a values with: cmake -D<Variable>=<Value>
-- ------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to:
/u01/mydumper-0.9.1
4.make &&make install
[mysql@localhost mydumper-0.9.1]$ make
Scanning dependencies of target mydumper
[ 25%] Building C object CMakeFiles/mydumper.dir/mydumper.c.o
[ 50%] Building C object CMakeFiles/mydumper.dir/server_detect.c.o
[ 75%] Building C object CMakeFiles/mydumper.dir/g_unix_signal.c.o
Linking C executable mydumper
[ 75%] Built target mydumper
Scanning dependencies of target myloader
[100%] Building C object CMakeFiles/myloader.dir/myloader.c.o
Linking C executable myloader
[100%] Built target myloader
[mysql@localhost mydumper-0.9.1]$ make install
[ 75%] Built target mydumper
[100%] Built target myloader
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/bin/mydumper
-- Removed runtime path from "/usr/local/bin/mydumper"
-- Installing: /usr/local/bin/myloader
-- Removed runtime path from "/usr/local/bin/myloader"

2)全库备份

mydumper \
--user=root \
--password= \
--socket=/u01/mysql/my3306/run/mysql.sock \
--regex '^(?!(mysql))' \
--outputdir=/u01/mysql/my3306/backup/ \
--compress \
--verbose=3 \
--logfile=/u01/mysql/my3306/backup/mydumper.log

最新文章

  1. 大熊君JavaScript插件化开发------(第二季)
  2. python中应用*args 与**kwargs
  3. OpenFlow
  4. swift学习网站
  5. Intel HEX file结构
  6. (step8.2.6)hdu 1848(Fibonacci again and again——组合博弈)
  7. Select * 一定不走索引是否正确?
  8. 【SCOI2008】着色方案
  9. 刀片服务器和磁盘阵列卡(RAID)技术---永和维护
  10. Linux IPC实践(11) --System V信号量(1)
  11. python的pandas库学习笔记
  12. SPOJ-SERVICE 线性dp+维度压缩
  13. Flutter自定义布局套路
  14. mysql between and 遇到日期查询边界问题
  15. Effective C++阅读笔记
  16. 45. Jump Game II (Array; Two-Pointers,Greedy)
  17. 04Add.ashx(新增班级)
  18. SQL IN
  19. gp的纯属意外的意外
  20. 智能dns或CDN应用中,如何很好的解决DNS缓存问题? - 知乎

热门文章

  1. SurfaceView基本使用--动态画正弦函数
  2. Maven项目中java类报错-Cannot resolve symbol
  3. PostBack IsPostBack
  4. 【SQL查询】按照多个字段进行排序_order by
  5. ng json格式的序列化和反序列化
  6. Wordpress在主题或者插件中自定义存储附件的方法
  7. kali视频(21-25)学习
  8. 剑指offer-第六章面试中的各项能力(不用加减乘除做加法)
  9. Jquery3.x高版本支持IE8
  10. [Err] 1067 - Invalid default value for &#39;xxxTime&#39;