mydumper 0.6.2 安装,dba的必备备份工具,必须掌握

新年第一天,祝愿所有的数据库都平平安安!

直接看安装过程,缺少包的自己看readme 安装好了。

[[email protected] local]# tar -xvf mydumper-0.6.2.tar.gz

mydumper-0.6.2/CMakeLists.txt

mydumper-0.6.2/README

mydumper-0.6.2/binlog.c

mydumper-0.6.2/binlog.h

mydumper-0.6.2/cmake/

mydumper-0.6.2/common.h

mydumper-0.6.2/config.h.in

mydumper-0.6.2/docs/

mydumper-0.6.2/g_unix_signal.c

mydumper-0.6.2/g_unix_signal.h

mydumper-0.6.2/mydumper.c

mydumper-0.6.2/mydumper.h

mydumper-0.6.2/myloader.c

mydumper-0.6.2/myloader.h

mydumper-0.6.2/server_detect.c

mydumper-0.6.2/server_detect.h

mydumper-0.6.2/cmake/modules/

mydumper-0.6.2/cmake/modules/CppcheckTargets.cmake

mydumper-0.6.2/cmake/modules/FindGLIB2.cmake

mydumper-0.6.2/cmake/modules/FindMySQL.cmake

mydumper-0.6.2/cmake/modules/FindPCRE.cmake

mydumper-0.6.2/cmake/modules/FindSphinx.cmake

mydumper-0.6.2/cmake/modules/Findcppcheck.cmake

mydumper-0.6.2/cmake/modules/Findcppcheck.cpp

mydumper-0.6.2/docs/CMakeLists.txt

mydumper-0.6.2/docs/_build/

mydumper-0.6.2/docs/_static/

mydumper-0.6.2/docs/authors.rst

mydumper-0.6.2/docs/compiling.rst

mydumper-0.6.2/docs/examples.rst

mydumper-0.6.2/docs/files.rst

mydumper-0.6.2/docs/index.rst

mydumper-0.6.2/docs/mydumper_usage.rst

mydumper-0.6.2/docs/myloader_usage.rst

mydumper-0.6.2/docs/_build/conf.py.in

mydumper-0.6.2/docs/_build/sources.cmake.in

[[email protected] local]# ll

总用量 10036

drwxr-xr-x.  2 root root    4096 11月 23 00:06 bin

drwxr-xr-x.  5 root root    4096 11月 18 2015 etc

drwxr-xr-x.  2 root root    4096 9月  23 2011 games

drwxr-xr-x  10 root root    4096 6月   1 2016 inception

drwxr-xr-x.  2 root root    4096 9月  23 2011 include

drwxr-xr-x   2 root root    4096 5月  11 2016 lepus

drwxr-xr-x.  2 root root    4096 9月  23 2011 lib

drwxr-xr-x.  2 root root    4096 9月  23 2011 lib64

drwxr-xr-x.  2 root root    4096 9月  23 2011 libexec

drwxr-xr-x   4 root root    4096 12月 29 22:02 mydumper-0.6.2

-rw-r--r--   1 root root   40165 9月  30 16:33 mydumper-0.6.2.tar.gz

drwxrwxr-x   6 root root    4096 11月 23 03:10 redis-3.0.7

-rw-r--r--   1 root root 1375200 11月 25 10:01 redis-3.0.7.tar.gz

drwxr-xr-x.  2 root root    4096 11月 18 2015 sbin

drwxr-xr-x.  5 root root    4096 8月   3 2015 share

drwxr-xr-x.  3 root root    4096 12月 10 2015 src

[[email protected] local]# cd mydumper-0.6.2

[[email protected] mydumper-0.6.2]# ll

总用量 140

-rw-r--r-- 1 root root  8171 9月   6 2014 binlog.c

-rw-r--r-- 1 root root  1244 9月   6 2014 binlog.h

drwxr-xr-x 3 root root  4096 12月 29 22:02 cmake

-rw-r--r-- 1 root root  2339 9月   6 2014 CMakeLists.txt

-rw-r--r-- 1 root root  2081 9月   6 2014 common.h

-rw-r--r-- 1 root root   101 9月   6 2014 config.h.in

drwxr-xr-x 4 root root  4096 12月 29 22:02 docs

-rw-r--r-- 1 root root  3614 9月   6 2014 g_unix_signal.c

-rw-r--r-- 1 root root   339 9月   6 2014 g_unix_signal.h

-rw-r--r-- 1 root root 65450 9月   6 2014 mydumper.c

-rw-r--r-- 1 root root  1937 9月   6 2014 mydumper.h

-rw-r--r-- 1 root root 12742 9月   6 2014 myloader.c

-rw-r--r-- 1 root root  1284 9月   6 2014 myloader.h

-rw-r--r-- 1 root root  2458 9月   6 2014 README

-rw-r--r-- 1 root root  2021 9月   6 2014 server_detect.c

-rw-r--r-- 1 root root  1116 9月   6 2014 server_detect.h

[[email protected] mydumper-0.6.2]# cmake .

-- The C compiler identification is GNU 4.4.7

-- The CXX compiler identification is GNU 4.4.7

-- Check for working C compiler: /usr/bin/cc

-- Check for working C compiler: /usr/bin/cc -- works

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working CXX compiler: /usr/bin/c++

-- Check for working CXX compiler: /usr/bin/c++ -- works

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Using mysql-config: /usr/bin/mysql_config

-- Found MySQL: /usr/include/mysql, /usr/lib64/libmysqlclient.so;/usr/lib64/libpthread.so;/usr/lib64/libm.so;/usr/lib64/librt.so;/usr/lib64/libdl.so

-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3")

-- Found PkgConfig: /usr/bin/pkg-config (found version "0.23")

-- 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 7.8

-- Found PCRE: /usr/include

CMake Warning at docs/CMakeLists.txt:9 (message):

Unable to find Sphinx documentation generator

-- ------------------------------------------------

-- MYSQL_CONFIG = /usr/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: /usr/local/mydumper-0.6.2

[[email protected] mydumper-0.6.2]# 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

[[email protected] mydumper-0.6.2]# make install

[ 75%] Built target mydumper

[100%] Built target myloader

Install the project...

-- Install configuration: ""

-- Installing: /usr/local/bin/mydumper

-- Installing: /usr/local/bin/myloader

[[email protected] mydumper-0.6.2]#

[[email protected] mydumper-0.6.2]# mydumper --help

Usage:

mydumper [OPTION...] multi-threaded MySQL dumping

Help Options:

-?, --help                  Show help options

Application Options:

-B, --database              Database to dump

-T, --tables-list           Comma delimited table list to dump (does not exclude regex option)

-o, --outputdir             Directory to output files to

-s, --statement-size        Attempted size of INSERT statement in bytes, default 1000000

-r, --rows                  Try to split tables into chunks of this many rows. This option turns off --chunk-filesize

-F, --chunk-filesize        Split tables into chunks of this output file size. This value is in MB

-c, --compress              Compress output files

-e, --build-empty-files     Build dump files even if no data available from table

-x, --regex                 Regular expression for ‘db.table‘ matching

-i, --ignore-engines        Comma delimited list of storage engines to ignore

-m, --no-schemas            Do not dump table schemas with the data

-k, --no-locks              Do not execute the temporary shared read lock.  WARNING: This will cause inconsistent backups

--less-locking              Minimize locking time on InnoDB tables.

-l, --long-query-guard      Set long query timer in seconds, default 60

-K, --kill-long-queries     Kill long running queries (instead of aborting)

-D, --daemon                Enable daemon mode

-I, --snapshot-interval     Interval between each dump snapshot (in minutes), requires --daemon, default 60

-L, --logfile               Log file name to use, by default stdout is used

--tz-utc                    SET TIME_ZONE=‘+00:00‘ at top of dump to allow dumping of TIMESTAMP data when a server has data in different time zones or data is being moved between servers with different time zones, defaults to on use --skip-tz-utc to disable.

--skip-tz-utc

--use-savepoints            Use savepoints to reduce metadata locking issues, needs SUPER privilege

--success-on-1146           Not increment error count and Warning instead of Critical in case of table doesn‘t exist

--lock-all-tables           Use LOCK TABLE for all, instead of FTWRL

-h, --host                  The host to connect to

-u, --user                  Username with privileges to run the dump

-p, --password              User password

-P, --port                  TCP/IP port to connect to

-S, --socket                UNIX domain socket file to use for connection

-t, --threads               Number of threads to use, default 4

-C, --compress-protocol     Use compression on the MySQL connection

-V, --version               Show the program version and exit

-v, --verbose               Verbosity of output, 0 = silent, 1 = errors, 2 = warnings, 3 = info, default 2

  [[email protected] mydumper-0.6.2]# myloader --help

Usage:

myloader [OPTION...] multi-threaded MySQL loader

Help Options:

-?, --help                        Show help options

Application Options:

-d, --directory                   Directory of the dump to import

-q, --queries-per-transaction     Number of queries per transaction, default 1000

-o, --overwrite-tables            Drop tables if they already exist

-B, --database                    An alternative database to restore into

-e, --enable-binlog               Enable binary logging of the restore data

-h, --host                        The host to connect to

-u, --user                        Username with privileges to run the dump

-p, --password                    User password

-P, --port                        TCP/IP port to connect to

-S, --socket                      UNIX domain socket file to use for connection

-t, --threads                     Number of threads to use, default 4

-C, --compress-protocol           Use compression on the MySQL connection

-V, --version                     Show the program version and exit

-v, --verbose                     Verbosity of output, 0 = silent, 1 = errors, 2 = warnings, 3 = info, default 2

[[email protected] mydumper-0.6.2]#

[[email protected] db_backup]# mydumper -u root -p root -h 192.168.1.93 -t 8 -o /data/db_backup/fullbak_$(date +%F)

[[email protected] db_backup]# myloader -u root -p root -h 192.168.1.93 -t 8 -o -d ./fullbak_2016-12-29/

时间: 2024-10-03 13:39:51

mydumper 0.6.2 安装,dba的必备备份工具,必须掌握的相关文章

OEL7.0 上静默安装oracle数据库

OEL7.0 上静默安装oracle数据库 静默安装本人使用的也比较少,基本上不需要使用静默安装.就算是文本安装的系统,也使用Xmanager 来重定向图形化.但是万事总有个例外的,比如在MAC 操作系统上,貌似没有Xmananger , 那该上虚拟机如果只装了文本界面就只能静默安装了,如果再装个图形化那就另一个情况了. 地点: 杭州·滨江 微信公众号:HopToad Email: [email protected] 欢迎转载 转载标注出处:: http://blog.csdn.net/notb

微信小程序(原名微信应用号)开发工具0.9版安装教程

微信小程序全称微信公众平台·小程序,原名微信公众平台·应用号(简称微信应用号) 声明 微信小程序开发工具类似于一个轻量级的IDE集成开发环境,目前仅开放给了少部分受微信官方邀请的人士(据说仅200个名额)进行内测,因此目前未受到邀请的人士只能使用破解版: 本破解版资源来自于网上,与本人无关,仅供技术开发人员研究之用: 由于尚属内测阶段,因此迭代更新非常快,后续很可能由于升级而导致暂时无法使用.   特别注意 由于目前发布的0.9版本必须验证才能登录(估计是为了验证是否为内测人士),因此必须先下载

jira 6.0.7 linux安装

1. 相关下载 1.JDK下载:http://www.oracle.com/technetwork/java/javase/downloads/index.html 2.Mysql驱动下载:http://dev.mysql.com/downloads/connector/j 3.Mysql下载:http://dev.mysql.com/downloads/mysql/#downloads 4.Jira下载:http://www.atlassian.com/software/jira/JIRADo

安装win8/win10提示无法在驱动器0分区上安装windows解决方法

在通过U盘或光盘安装win8/win8.1/win10系统时,不少用户遇到无法安装的问题,提示"无法在驱动器0的分区1上安装windows",格式化分区1也不能解决,进而提示Windows无法安装到这个磁盘,选中的磁盘采用GPT/MBR分区形式,这是怎么回事呢?下面小编跟大家分析出现这个问题的原因以及解决方法. 一.原因分析 win8/win10系统均添加快速启动功能,预装的win8/win10电脑默认都是UEFI引导和GPT硬盘,传统的引导方式为Legacy引导和MBR硬盘,UEFI

CentOS 7.0 Nvidia显卡安装步骤

from: http://blog.sina.com.cn/s/blog_49c0985a0102v3fa.html CentOS 7.0 Nvidia显卡安装步骤: 1 在英伟达官网下载相应驱动 搜索出相应的驱动后,不要直接点,而是右健,Save Link as... 否则,会出现下载半天没动静的情况. 存放的路径上最好不要有中文. 我存放的路径是 ~/Downloads/NVIDIA-Linux-x86_64-346.47.run 2 屏蔽默认带有的nouveau 使用su命令切换到root

kali 2.0 U盘安装错误Your installation cd-rom couldn&#39;t be mounted

1.kali 2.0前天(2015.08.11)发布了.果断下载下来换掉本机的1.0版本. 2.用U盘安装的过程中,出现cd-rom无法挂载.提示错误Your installation CD-ROM couldn't be mounted. 3.在谷歌搜索后,参考国外的http://serverfault.com/questions/685302/unattended-installation-of-ubuntu-from-usb-drive-not-mounted-correctly 4.经过

Cocos2d-x 2.0以上版本安装方法

1,cd 到2dx根目录,MAC平台使用./create-multi-platform-projects.py  然后提示: -bash: ./create-multi-platform-projects.py: /usr/bin/evn: bad interpreter: No such file or directory 没关系,我们打开.py文件,发现其实引用的是tools/project-creator/create_project.py 这文件 2,我们再cd 到tools/proje

Sql Server Compact 4.0数据库部署安装

Sql Server Compact 4.0相比3.5版本增强了很多,支持Entity Framework 4.1,对于轻量级应用来讲,使用Sql Server Compact 4.0是个很好的选择,而且部署相当方便,不需要 Sql Server Compact 4.0的安装包,仅需要发布相关的dll以及web.config配置即可. 开发环境下,需要安装 vs2010 sp1 Microsoft SQL Server Compact 4.0 Visual Studio 2010 SP1 Too

redis3.0.2 编译安装 (启动服务方式启动)

1.基础环境介绍: 操作系统:Centos 6.7 redis版本:3.0.2 2.开始安装: 1)基础安装 参考链接:http://309173854.blog.51cto.com/7370240/1710655         [[email protected] ~]#yum -y install tcl         [[email protected] ~]# wget http://download.redis.io/releases/redis-3.0.2.tar.gz