Professional Documents
Culture Documents
Install Mydumper
Install Mydumper
Install Mydumper
html
Install mydumper
https://launchpad.net/mydumper
wget https://launchpad.net/mydumper/0.9/0.9.1/+download/mydumper-0.9.1.tar.gz
cd mydumper-0.9.1
[root@tpaqaci1 mydumper-0.9.1]# ll
total 168
-rw-r--r-- 1 root root 8171 Nov 6 2015 binlog.c
-rw-r--r-- 1 root root 1244 Nov 6 2015 binlog.h
drwxr-xr-x 3 root root 20 Oct 16 14:15 cmake
-rw-r--r-- 1 root root 2339 Nov 6 2015 CMakeLists.txt
-rw-r--r-- 1 root root 2081 Nov 6 2015 common.h
-rw-r--r-- 1 root root 101 Nov 6 2015 config.h.in
drwxr-xr-x 4 root root 4096 Oct 16 14:15 docs
-rw-r--r-- 1 root root 3614 Nov 6 2015 g_unix_signal.c
-rw-r--r-- 1 root root 339 Nov 6 2015 g_unix_signal.h
-rw-r--r-- 1 root root 92941 Nov 6 2015 mydumper.c
-rw-r--r-- 1 root root 2169 Nov 6 2015 mydumper.h
-rw-r--r-- 1 root root 16630 Nov 6 2015 myloader.c
-rw-r--r-- 1 root root 1284 Nov 6 2015 myloader.h
-rw-r--r-- 1 root root 2244 Nov 6 2015 README
-rw-r--r-- 1 root root 2021 Nov 6 2015 server_detect.c
-rw-r--r-- 1 root root 1116 Nov 6 2015 server_detect.h
[root@tpaqaci1 mydumper-0.9.1]#
[root@tpaqaci1 mydumper-0.9.1]# ll
total 212
-rw-r--r-- 1 root root 8171 Nov 6 2015 binlog.c
-rw-r--r-- 1 root root 1244 Nov 6 2015 binlog.h
drwxr-xr-x 3 root root 20 Oct 16 14:15 cmake
-rw-r--r-- 1 root root 19582 Oct 16 14:48 CMakeCache.txt
drwxr-xr-x 7 root root 4096 Oct 16 14:48 CMakeFiles
-rw-r--r-- 1 root root 3644 Oct 16 14:45 cmake_install.cmake
-rw-r--r-- 1 root root 2339 Nov 6 2015 CMakeLists.txt
-rw-r--r-- 1 root root 2081 Nov 6 2015 common.h
-rw-r--r-- 1 root root 92 Oct 16 14:42 config.h
-rw-r--r-- 1 root root 101 Nov 6 2015 config.h.in
drwxr-xr-x 5 root root 4096 Oct 16 14:48 docs
-rw-r--r-- 1 root root 3614 Nov 6 2015 g_unix_signal.c
-rw-r--r-- 1 root root 339 Nov 6 2015 g_unix_signal.h
-rw-r--r-- 1 root root 11094 Oct 16 14:48 Makefile
-rw-r--r-- 1 root root 92941 Nov 6 2015 mydumper.c
-rw-r--r-- 1 root root 2169 Nov 6 2015 mydumper.h
-rw-r--r-- 1 root root 16630 Nov 6 2015 myloader.c
-rw-r--r-- 1 root root 1284 Nov 6 2015 myloader.h
-rw-r--r-- 1 root root 2244 Nov 6 2015 README
-rw-r--r-- 1 root root 2021 Nov 6 2015 server_detect.c
-rw-r--r-- 1 root root 1116 Nov 6 2015 server_detect.h
http://www.sphinx-doc.org/en/stable/install.html
Running a backup:
http://www.ubuntugeek.com/mydumper-mysql-database-backup-tool.html
http://prog3.com/sbdm/blog/leshami/article/details/46815553
http://prog3.com/sbdm/blog/leshami/article/details/46815553
https://planet.mysql.com/entry/?id=5991079
/usr/local/bin/myloader
ln -s /usr/local/bin/myloader /usr/bin/myloader
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
-s, --source-db Database to restore
-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