mydumper 安装

运行环境:centos 7.5 + mysql8.0
1.介绍:
1.1 基本信息简介:
mydumper是第三方支持mysql的备份恢复工具,支持并行备份恢复速度快。
https://github.com/maxbube/mydumper
Parallelism (hence, speed) and performance (avoids expensive character set conversion routines, efficient code overall)
Easier to manage output (separate files for tables, dump metadata, etc, easy to view/parse data)
Consistency - maintains snapshot across all threads, provides accurate master and slave log positions, etc
Manageability - supports PCRE for specifying database and tables inclusions and exclusions

1.2发布历史:

1.3 编译版本:
# mydumper --version
mydumper 0.9.1, built against MySQL 5.1.73
# mydumper --version
mydumper 0.9.3, built against MySQL 5.7.19-17
## mydumper  --version
mydumper 0.9.5, built against MySQL 5.7.21-21


2.安装:
# wget https://github.com/maxbube/mydumper/archive/v0.9.5.tar.gz
# tar -xzvf v0.9.5.tar.gz  -C /usr/local/
# mv /usr/local/mydumper-0.9.5/ /usr/local/mydumper

切花到程序目录下查看README文件视操作系统而定:
# cat README.md 

安装依赖的软件包:

#  yum -y install glib2-devel mysql-devel zlib-devel pcre-devel openssl-devel gcc cmake make

#cmake .
#make 

编译安装完成之后在/usr/local/mydumper目录下生成mydumper和myloader二进制文件。
编译报错的话查看报错信息:
#cat /usr/local/mydumper/CMakeFiles/CMakeOutput.log


3.使用RPM的安装方式:
#
yum install https://github.com/maxbube/mydumper/releases/download/v0.9.5/mydumper-0.9.5-1.el7.x86_64.rpm


4.mydumper的正则表达式:
 mydumper使用--regex来使用正则表达式功能。
不备份mysql和test库:
 mydumper --regex '^(?!(mysql\.|test\.))'
仅备份mysql和test库:
 mydumper --regex '^(mysql\.|test\.)'
不备份以test开头的数据库:
 mydumper --regex '^(?!(test))'
Of course, regex functionality can be used to describe pretty much any list of tables.

5.安装注意的点:

 

你可能感兴趣的:(MySQL)