Mydumper是一个针对MySQL和Drizzle的高性能多线程备份和恢复工具。
1.下载mydumper
下载地址:Releases · mydumper/mydumper · GitHub
下载好后上传到虚拟机
1.1首先下载mydumper所需的环境
#安装配置依赖
yum install -y cmake gcc gcc-c++ git make
#安装开发依赖
yum install -y glib2-devel mysql-devel openssl-devel pcre-devel zlib-devel libzstd-devel
#可以安装数据库版本
yum install -y mysql-devel
yum install -y Percona-Server-devel-57
yum install -y mariadb-devel
1.2 上传mydumper
Uploading mydumper-0.12.1.tar.gz to /root/mydumper-0.12.1.tar.gz
100% 111KB 111KB/s 00:00:00
C:/User/mydumper-0.12.1.tar.gz: 114268 bytes transferred in 0 seconds (111 KB/s)
2.安装mydumper
2.1 安装mydumper
[root@sdbyx1 ~]# yum install https://github.com/mydumper/mydumper/releases/download/v0.11.5/mydumper-0.11.5-1.el7.x86_64.rpm
2.2 卸载
[root@sdbyx1 ~]# yum list installed | grep mydumper
mydumper.x86_64 0.11.5-1 @/mydumper-0.11.5-1.el7.x86_64
[root@sdbyx1 ~]# yum remove mydumper.x86_64
2.3 rpm方式安装
安装rpm包
[root@sdbyx1 ~]# rpm -ivh mydumper-0.12.1-1.el7.x86_64.rpm
|