国产精品电影_久久视频免费_欧美日韩国产激情_成年人视频免费在线播放_日本久久亚洲电影_久久都是精品_66av99_九色精品美女在线_蜜臀a∨国产成人精品_冲田杏梨av在线_欧美精品在线一区二区三区_麻豆mv在线看

MySQL innodb引擎?zhèn)浞莨ぞ遆traBackup之一(Install)

數(shù)據(jù)庫 MySQL
  Xtrabackup是一個對InnoDB做數(shù)據(jù)備份的工具,支持在線熱備份(備份時不影響數(shù)據(jù)讀寫),是商業(yè)備份工具InnoDB Hotbackup的一個很好的替代品。   Xtrabackup有兩個主要的工具:xtrabackup、innobackupex

  Xtrabackup是一個對InnoDB做數(shù)據(jù)備份的工具,支持在線熱備份(備份時不影響數(shù)據(jù)讀寫),是商業(yè)備份工具InnoDB Hotbackup的一個很好的替代品。

  Xtrabackup有兩個主要的工具:xtrabackup、innobackupex

  (1)xtrabackup只能備份InnoDB和XtraDB兩種數(shù)據(jù)表,而不能備份MyISAM數(shù)據(jù)表

  (2)innobackupex-1.5.1則封裝了xtrabackup,是一個腳本封裝,所以能同時備份處理innodb和myisam,但在處理myisam時需要加一個讀鎖

  安裝XtraBackup,首先要安裝MySQL

  1、查看MySQL版本

  [root@rh64 ~]# service mysql start

  Starting MySQL (Percona Server)...[ OK ]

  [root@rh64 ~]# mysql -u root -p

  Enter password:

  Welcome to the MySQL monitor. Commands end with ; or \g.

  Your MySQL connection id is 1

  Server version: 5.6.25-73.1 Percona Server (GPL), Release 73.1, Revision 07b797f

  Copyright (c) 2009-2015 Percona LLC and/or its affiliates

  Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.

  Oracle is a registered trademark of Oracle Corporation and/or its

  affiliates. Other names may be trademarks of their respective

  owners.

  Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

  mysql>

  2、安裝配置

  在/etc/my.cnf文件要配置數(shù)據(jù)所存儲的目錄

  [root@rh64 XtraBackup]# cat /etc/my.cnf |grep datadir

  datadir=/var/lib/mysql

  3、下載安裝

  

  安裝:

  [root@rh64 XtraBackup]# ls -l

  total 26808

  -rw-r----- 1 mysql mysql 5664452 Oct 27 10:27 percona-xtrabackup-2.3.2-1.el6.x86_64.rpm

  -rw-r----- 1 mysql mysql 20807976 Oct 27 10:27 percona-xtrabackup-debuginfo-2.3.2-1.el6.x86_64.rpm

  -rw-r----- 1 mysql mysql 971264 Oct 27 10:27 percona-xtrabackup-test-2.3.2-1.el6.x86_64.rpm

  [root@rh64 XtraBackup]# rpm -ivh percona-xtrabackup-2.3.2-1.el6.x86_64.rpm

  warning: percona-xtrabackup-2.3.2-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY

  error: Failed dependencies:

  libev.so.4()(64bit) is needed by percona-xtrabackup-2.3.2-1.el6.x86_64

  ----安裝出錯,要求需有l(wèi)ibev.so庫支持

  下載libev安裝包:

  [root@rh64 libev-4.15]# tar zxvf libev-4.15.tar.gz

  安裝libev:

  [root@rh64 libev-4.15]# ./configure

  checking for a BSD-compatible install... /usr/bin/install -c

  checking whether build environment is sane... yes

  checking for a thread-safe mkdir -p... /bin/mkdir -p

  checking for gawk... gawk

  checking whether make sets $(MAKE)... yes

  checking whether to enable maintainer-specific portions of Makefiles... no

  checking for gcc... gcc

  checking whether the C compiler works... yes

  checking for C compiler default output file name... a.out

  checking for suffix of executables...

  checking whether we are cross compiling... no

  checking for suffix of object files... o

  checking whether we are using the GNU C compiler... yes

  checking whether gcc accepts -g... yes

  checking for gcc option to accept ISO C89... none needed

  checking for style of include used by make... GNU

  checking dependency style of gcc... gcc3

  checking build system type... x86_64-unknown-linux-gnu

  checking host system type... x86_64-unknown-linux-gnu

  checking how to print strings... printf

  checking for a sed that does not truncate output... /bin/sed

  checking for grep that handles long lines and -e... /bin/grep

  checking for egrep... /bin/grep -E

  checking for fgrep... /bin/grep -F

  checking for ld used by gcc... /usr/bin/ld

  checking if the linker (/usr/bin/ld) is GNU ld... yes

  checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B

  checking the name lister (/usr/bin/nm -B) interface... BSD nm

  checking whether ln -s works... yes

  checking the maximum length of command line arguments... 1966080

  checking whether the shell understands some XSI constructs... yes

  checking whether the shell understands "+="... yes

  checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop

  checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop

  checking for /usr/bin/ld option to reload object files... -r

  checking for objdump... objdump

  checking how to recognize dependent libraries... pass_all

  checking for dlltool... no

  checking how to associate runtime and link libraries... printf %s\n

  checking for ar... ar

  checking for archiver @FILE support... @

  ......

  [root@rh64 libev-4.15]# make

  make all-am

  make[1]: Entering directory `/home/mysql/libev-4.15'

  /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O3 -MT ev.lo -MD -MP -MF .deps/ev.Tpo -c -o ev.lo ev.c

  libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O3 -MT ev.lo -MD -MP -MF .deps/ev.Tpo -c ev.c -fPIC -DPIC -o .libs/ev.o

  ev.c:1531: warning: 'ev_default_loop_ptr' initialized and declared 'extern'

  libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O3 -MT ev.lo -MD -MP -MF .deps/ev.Tpo -c ev.c -o ev.o >/dev/null 2>&1

  mv -f .deps/ev.Tpo .deps/ev.Plo

  /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -g -O3 -MT event.lo -MD -MP -MF .deps/event.Tpo -c -o event.lo event.c

  libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O3 -MT event.lo -MD -MP -MF .deps/event.Tpo -c event.c -fPIC -DPIC -o .libs/event.o

  libtool: compile: gcc -DHAVE_CONFIG_H -I. -g -O3 -MT event.lo -MD -MP -MF .deps/event.Tpo -c event.c -o event.o >/dev/null 2>&1

  mv -f .deps/event.Tpo .deps/event.Plo

  /bin/sh ./libtool --tag=CC --mode=link gcc -g -O3 -version-info 4:0:0 -o libev.la -rpath /usr/local/lib ev.lo event.lo -lm

  libtool: link: gcc -shared -fPIC -DPIC .libs/ev.o .libs/event.o -lm -O3 -Wl,-soname -Wl,libev.so.4 -o .libs/libev.so.4.0.0

  libtool: link: (cd ".libs" && rm -f "libev.so.4" && ln -s "libev.so.4.0.0" "libev.so.4")

  libtool: link: (cd ".libs" && rm -f "libev.so" && ln -s "libev.so.4.0.0" "libev.so")

  libtool: link: ar cru .libs/libev.a ev.o event.o

  libtool: link: ranlib .libs/libev.a

  libtool: link: ( cd ".libs" && rm -f "libev.la" && ln -s "../libev.la" "libev.la" )

  make[1]: Leaving directory `/home/mysql/libev-4.15'

  [root@rh64 libev-4.15]# make install

  make[1]: Entering directory `/home/mysql/libev-4.15'

  /bin/mkdir -p '/usr/local/lib'

  /bin/sh ./libtool --mode=install /usr/bin/install -c libev.la '/usr/local/lib'

  libtool: install: /usr/bin/install -c .libs/libev.so.4.0.0 /usr/local/lib/libev.so.4.0.0

  libtool: install: (cd /usr/local/lib && { ln -s -f libev.so.4.0.0 libev.so.4 || { rm -f libev.so.4 && ln -s libev.so.4.0.0 libev.so.4; }; })

  libtool: install: (cd /usr/local/lib && { ln -s -f libev.so.4.0.0 libev.so || { rm -f libev.so && ln -s libev.so.4.0.0 libev.so; }; })

  libtool: install: /usr/bin/install -c .libs/libev.lai /usr/local/lib/libev.la

  libtool: install: /usr/bin/install -c .libs/libev.a /usr/local/lib/libev.a

  libtool: install: chmod 644 /usr/local/lib/libev.a

  libtool: install: ranlib /usr/local/lib/libev.a

  libtool: finish: PATH="/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /usr/local/lib

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

  Libraries have been installed in:

  /usr/local/lib

  If you ever happen to want to link against installed libraries

  in a given directory, LIBDIR, you must either use libtool, and

  specify the full pathname of the library, or use the `-LLIBDIR'

  flag during linking and do at least one of the following:

  - add LIBDIR to the `LD_LIBRARY_PATH' environment variable

  during execution

  - add LIBDIR to the `LD_RUN_PATH' environment variable

  during linking

  - use the `-Wl,-rpath -Wl,LIBDIR' linker flag

  - have your system administrator add LIBDIR to `/etc/ld.so.conf'

  See any operating system documentation about shared libraries for

  more information, such as the ld(1) and ld.so(8) manual pages.

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

  /bin/mkdir -p '/usr/local/include'

  /usr/bin/install -c -m 644 ev.h ev++.h event.h '/usr/local/include'

  /bin/mkdir -p '/usr/local/share/man/man3'

  /usr/bin/install -c -m 644 ev.3 '/usr/local/share/man/man3'

  make[1]: Leaving directory `/home/mysql/libev-4.15'

  查看libev安裝信息:

  [root@rh64 libev-4.15]# find / -name 'libev.so*'

  /home/mysql/libev-4.15/.libs/libev.so.4.0.0

  /home/mysql/libev-4.15/.libs/libev.so

  /home/mysql/libev-4.15/.libs/libev.so.4

  /usr/local/lib/libev.so.4.0.0

  /usr/local/lib/libev.so.4

  /usr/local/lib/libev.so

  配置lib訪問環(huán)境:

  [root@rh64 XtraBackup]# cat /etc/profile

  export LIBDIR=/usr/local/lib

  export LD_LIBRARY_PATH=/usr/local/lib

  export LD_RUN_PATH=/usr/local/lib

  "/etc/profile" 82L, 1898C written

  再次安裝:

  [root@rh64 XtraBackup]# rpm -ivh percona-xtrabackup-2.3.2-1.el6.x86_64.rpm

  warning: percona-xtrabackup-2.3.2-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY

  error: Failed dependencies:

  libev.so.4()(64bit) is needed by percona-xtrabackup-2.3.2-1.el6.x86_64

  ---仍然失敗!!!可能是libev的版本不對,應(yīng)該下載libev(64)

  下載libev(64)并安裝:

  http://rpmfind.net/linux/rpm2html/search.php?query=libev.so.4()(64bit)

  [root@rh64 mysql]# rpm -ivh libev-4.04-2.el6.x86_64.rpm

  warning: libev-4.04-2.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 66534c2b: NOKEY

  Preparing... ########################################### [100%]

  1:libev ########################################### [100%]

  [root@rh64 mysql]# rpm -qa |grep libev

  libevent-1.4.13-4.el6.x86_64

  libevent-1.4.13-4.el6.i686

  libev-4.04-2.el6.x86_64

  [root@rh64 mysql]# rpm -ql libev

  /usr/lib64/libev.so.4

  /usr/lib64/libev.so.4.0.0

  /usr/share/doc/libev-4.04

  /usr/share/doc/libev-4.04/Changes

  /usr/share/doc/libev-4.04/LICENSE

  /usr/share/doc/libev-4.04/README

  安裝xtrabackup:

  [root@rh64 XtraBackup]# ls

  percona-xtrabackup-2.3.2-1.el6.x86_64.rpm percona-xtrabackup-test-2.3.2-1.el6.x86_64.rpm

  percona-xtrabackup-debuginfo-2.3.2-1.el6.x86_64.rpm

  [root@rh64 XtraBackup]# rpm -ivh *

  warning: percona-xtrabackup-2.3.2-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY

  Preparing... ########################################### [100%]

  1:percona-xtrabackup ########################################### [ 33%]

  2:percona-xtrabackup-test########################################### [ 67%]

  3:percona-xtrabackup-debu########################################### [100%]

  ----安裝成功!!!

  [root@rh64 XtraBackup]# man innobackupex

  INNOBACKUPEX(1) Percona XtraBackup INNOBACKUPEX(1)

  NAME

  innobackupex - innobackupex Documentation

  The innobackupex tool is a Perl script that acts as a wrapper for the xtrabackup C program. It

  is a patched version of the innobackup Perl script that Oracle distributes with the InnoDB Hot

  Backup tool. It enables more functionality by integrating xtrabackup and other functions such as

  file copying and streaming, and adds some convenience. It lets you perform point-in-time backups

  of InnoDB / XtraDB tables together with the schema definitions, MyISAM tables, and other por-

  tions of the server.

  This manual section explains how to use innobackupex in detail.

  PREREQUISITES

  Connection and Privileges Needed

  Percona XtraBackup needs to be able to connect to the database server and perform operations on

  the server and the datadir when creating a backup, when preparing in some scenarios and when

  restoring it. In order to do so, there are privileges and permission requirements on its execu-

  tion that must be fulfilled.

  Privileges refers to the operations that a system user is permitted to do in the database

  server. They are set at the database server and only apply to users in the database server.

  Permissions are those which permits a user to perform operations on the system, like reading,

  writing or executing on a certain directory or start/stop a system service. They are set at a

  system level and only apply to system users.

  Whether xtrabackup or innobackupex is used, there are two actors involved: the user invoking the

  program - a system user - and the user performing action in the database server - a database

  user. Note that these are different users in different places, even tough they may have the same

  username.

  All the invocations of innobackupex and xtrabackup in this documentation assumes that the system

  user has the appropriate permissions and you are providing the relevant options for connecting

  the database server - besides the options for the action to be performed - and the database user

  has adequate privileges.

  Connecting to the server

  The database user used to connect to the server and its password are specified by the --user and

  --password option,

  $ innobackupex --user=DBUSER --password=SECRET /path/to/backup/dir/

  $ innobackupex --user=LUKE --password=US3TH3F0RC3 --stream=tar ./ | bzip2 -

  $ xtrabackup --user=DVADER --password=14MY0URF4TH3R --backup --target-dir=/data/bkps/

  ----至此,XtraBackup安裝完成!!!

責(zé)任編輯:honglu 來源: 51CTO博客
相關(guān)推薦

2015-10-29 13:52:53

MySQLinnodb引擎備份

2023-05-31 08:54:14

MySQL邏輯備份

2023-01-11 08:05:23

XtraBackupMySQL備份

2019-06-11 16:11:16

MySQLMyISAMInnoDB

2010-05-21 16:23:52

MySQL MyISA

2010-05-11 15:06:24

MySQL MyISA

2010-11-23 11:27:53

MySQL MyISA

2017-12-15 10:20:56

MySQLInnoDB同步機(jī)制

2017-12-14 21:30:05

MySQLInnoDBIO子系統(tǒng)

2010-05-12 12:36:46

MySQL innod

2010-05-31 09:50:13

MySQL數(shù)據(jù)庫

2010-05-21 16:10:28

2018-06-14 10:44:59

MySQLMyISAMInnoDB

2009-05-05 10:19:37

存儲引擎InnoDBMyISAM

2015-07-16 14:33:36

TB級mysqlxtrabackup備份遷移

2009-05-19 09:58:41

MyISAMInnoDB存儲引擎

2011-07-27 09:33:16

MySQL數(shù)據(jù)庫INNODB數(shù)據(jù)庫引擎

2022-12-14 07:32:40

InnoDBMySQL引擎

2011-03-23 17:21:42

2021-06-03 19:55:55

MySQ查詢優(yōu)化
點贊
收藏

51CTO技術(shù)棧公眾號

在线视频日韩一区| 国产一区二区三区免费不卡| h色视频在线观看| 亚洲综合激情网| 国产精品27p| 日韩a**中文字幕| 精品福利在线观看| 亚洲国产欧美在线成人app| 最新av在线免费观看| 国产精品久久久久久影院8一贰佰 国产精品久久久久久麻豆一区软件 | 国产精品精品国产一区二区| 亚洲欧美日韩国产中文专区| 91caoporm在线视频| 亚洲高清中文字幕| 免费观看中文字幕| 外国成人在线视频| 欧美精品一本久久男人的天堂| 国产亚av手机在线观看| 欧美电影《睫毛膏》| 欧美老妇交乱视频| 青草av在线| 99热在这里有精品免费| 日韩欧美视频第二区| 美女视频网站久久| 亚洲国产一区二区三区在线| 久久99深爱久久99精品| 日韩精品中文字幕一区| 国产三区视频在线观看| 欧美私人免费视频| 免费a级毛片在线观看| 欧洲一区二区av| 91免费版网站在线观看| h1515四虎成人| 最近2019中文免费高清视频观看www99 | 伊人久久大香线蕉综合影院首页| 亚洲欧洲中文日韩久久av乱码| 国产精品综合网站| 伊人情人综合网| 亚洲另类xxxx| 久久超级碰碰| 国产在线一区二| 午夜精品剧场| 最好看的2019年中文视频| 国产精品一区二区免费福利视频| 久久99热这里只有精品国产| 亚洲女娇小黑人粗硬| 成人免费激情视频| 亚洲精品乱码| 日韩精品一区在线观看| 国产麻豆一区| 国产成人精品视频在线| 久久精品国产一区二区| 日韩中文娱乐网| 日韩在线不卡| 四虎4hu永久免费入口| 一区二区三区日本| 免费成人在线电影| 国产精品av电影| 毛片av一区二区三区| av男人的天堂网| 欧美精品一区二区在线播放| 日本国产精品| 在线观看欧美亚洲| 欧美视频免费在线观看| 男女在线观看视频| 成人午夜影院在线观看| 一区二区在线免费| 美女福利一区二区三区| 日韩国产欧美一区| 欧美三级日本三级少妇99| 不卡中文字幕| 久久精品一区中文字幕| 国内自拍视频一区二区三区| www.浪潮av.com| 欧美一区二区视频在线观看| 亚洲日日夜夜| 麻豆传媒网站在线观看| 狠狠爱在线视频一区| 又黄又爽在线免费观看| 午夜欧美视频在线观看| 久久国产精品美女| 久久国产精品免费视频| www.欧美色图| 僵尸再翻生在线观看免费国语| 欧洲亚洲一区二区三区四区五区| 色综合久久综合网欧美综合网| 九九在线视频| 九九九热999| 91福利社在线观看| 影音先锋成人在线电影| 在线播放国产区| 在线观看视频亚洲| 成人福利网站| 欧美成人中文字幕在线| 成人小视频在线| 欧美色网一区| 黄色三级视频片| 成人免费黄色网| 色婷婷久久综合| 精品91在线| 成人国产激情| 在线观看免费av网| 欧洲国产精品| 欧美三级三级三级| 美女国产一区二区三区| 国产精品高潮呻吟久久久久| 国产乱码精品一区二区三区不卡| 欧美日韩久久久| 俺要去色综合狠狠| 国产乱妇乱子在线播视频播放网站| 三年中国中文在线观看免费播放| 在线观看亚洲视频| 亚洲欧美成人一区二区三区| 99热在线精品观看| 9久久婷婷国产综合精品性色 | 天堂成人在线| 九九爱精品视频| 国产精品美女诱惑| 亚洲欧美在线看| 欧美伊人久久大香线蕉综合69| 欧美精品三区| 精品人人人人| 97超碰欧美中文字幕| 一区二区传媒有限公司| 亚洲成人黄色网| 国产精品影视网| 黄色av免费| 欧美性天天影院| 国产精品久久久久久久久久久久 | 精品国产电影一区| 99久久国产综合精品女不卡| 亚洲午夜精品一区二区国产 | 欧美成人69| 欧美日韩另类图片| 国产三级视频在线看| 欧美亚洲在线视频| 久久精品一二三| 国产不卡免费视频| 国产老妇另类xxxxx| 偷拍欧美精品| 亚洲国产aⅴ精品一区二区| jizzjizzji欧美| 亚洲精品欧洲精品| 久久中文字幕在线视频| 亚洲精品国产电影| 亚洲精品成a人在线观看| 亚洲黄色在线观看| 久久久久久久久久久黄色| 久久久久久亚洲综合影院红桃| 欧美91大片| 欧美高清你懂的| 日韩激情啪啪| 亚洲成人精品综合在线| 五月婷婷六月丁香激情| 日本中文字幕片| 中文字幕第38页| 日韩有码电影| 狠狠色噜噜狠狠色综合久| 欧美不卡激情三级在线观看| 91免费小视频| 亚洲男人天堂av| 亚洲精品精品亚洲| 国产欧美日韩卡一| 牛牛国产精品| 加勒比av一区二区| 日本h片久久| 少妇精品久久久一区二区三区| 欧美在线亚洲综合一区| 欧美aaaaaa午夜精品| 久久性色av| 综合在线观看色| 在线影院国内精品| 日韩精品中文字幕久久臀| 国内精品第一页| 日本一区二区三区四区在线视频| 亚洲高清免费在线| 一区二区不卡在线播放| 欧美日韩一区二区三区在线| 精品久久国产字幕高潮| 欧美激情亚洲一区| 2020久久国产精品| 久久国产精品一区二区三区 | 麻豆成人av在线| 夜夜夜精品看看| 亚洲一区二区三区美女| 色欧美乱欧美15图片| 成人97在线观看视频| 欧美成人dvd在线视频| 欧美一级片免费播放| 高潮毛片在线观看| 亚洲美女炮图| 粉嫩av国产一区二区三区| 菠萝菠萝蜜在线视频免费观看| 99re8这里有精品热视频免费| 影音先锋中文字幕一区| 日本福利视频在线| 成人午夜天堂| www999久久| 久久综合久久鬼色| 精品国产鲁一鲁一区二区张丽|