中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

CentoS 6.X安裝xtrabackup 2.2.13

發布時間:2020-05-25 09:06:20 來源:網絡 閱讀:641 作者:GoDevops 欄目:MySQL數據庫

   作為一線運維或者DBA對數據備份絕對不會陌生,mysqldump、xtrabackup等常見備份姿勢更是非常熟悉,還有很多商業備份工具以及其他的開源備份工具,所謂的冷備、熱備、增量備份什么的,各種名詞直接晃悠的你頭疼。接下來跟著我繼續踩一遍軟件安裝的坑吧。

操作系統:CentoS 6.7

Xtrabackup版本:2.2.13

MySQL版本:5.6.30

官網文檔:https://www.percona.com/doc/percona-xtrabackup/2.2/installation/yum_repo.html 

常見的安裝方式有源碼包和yum以及RPM等方式,源碼編譯什么比較麻煩,rpm包安裝可能會出現依賴性的問題,本文中剛開始選擇了用yum的方式,


1、Install the Percona repository

yum install http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm


2、Testing the repository

Make sure packages are now available from the repository, by executing the following command:

yum list | grep percona

You should see output similar to the following:

...
percona-xtrabackup-20.x86_64               2.0.8-587.rhel5             percona-release-x86_64
percona-xtrabackup-20-debuginfo.x86_64     2.0.8-587.rhel5             percona-release-x86_64
percona-xtrabackup-20-test.x86_64          2.0.8-587.rhel5             percona-release-x86_64
percona-xtrabackup-21.x86_64               2.1.9-746.rhel5             percona-release-x86_64
percona-xtrabackup-21-debuginfo.x86_64     2.1.9-746.rhel5             percona-release-x86_64
percona-xtrabackup-22.x86_64               2.2.13-1.el5                percona-release-x86_64
percona-xtrabackup-22-debuginfo.x86_64     2.2.13-1.el5                percona-release-x86_64
percona-xtrabackup-debuginfo.x86_64        2.3.2-1.el5                 percona-release-x86_64
percona-xtrabackup-test.x86_64             2.3.2-1.el5                 percona-release-x86_64
percona-xtrabackup-test-21.x86_64          2.1.9-746.rhel5             percona-release-x86_64
percona-xtrabackup-test-22.x86_64          2.2.13-1.el5                percona-release-x86_64

3、install the packages

You can now install Percona XtraBackup by running:

yum install percona-xtrabackup-22

  根據文檔配置yum源,然后開始安裝軟件,下載什么很慢,并且出現以下報錯,于是我們就采取下載文件的方式

Total size: 19 M
Total download size: 4.8 M
Is this ok [y/N]: y
Downloading Packages:
http://repo.percona.com/release/6/RPMS/x86_64/percona-xtrabackup-22-2.2.13-1.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 18 - "transfer closed with 884350 bytes remaining to read"
Trying other mirror.


Error Downloading Packages:
  percona-xtrabackup-22-2.2.13-1.el6.x86_64: failure: percona-xtrabackup-22-2.2.13-1.el6.x86_64.rpm from percona-release-x86_64: [Errno 256] No more mirrors to try.

4、使用wget下載文件 用rpm安裝

wget
root@username1-pc ~]# rpm  -ivh   percona-xtrabackup-22-2.2.13-1.el6.x86_64.rpm 
warning: percona-xtrabackup-22-2.2.13-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
error: Failed dependencies:
	perl(DBD::mysql) is needed by percona-xtrabackup-22-2.2.13-1.el6.x86_64
	perl(Time::HiRes) is needed by percona-xtrabackup-22-2.2.13-1.el6.x86_64
percona-xtrabackup-22                  x86_64               2.2.13-1.el6                              percona-release-x86_64               4.8 M
Installing for dependencies:
 Percona-Server-shared-51               x86_64               5.1.73-rel14.12.625.rhel6                 percona-release-x86_64               2.1 M
 perl-DBD-MySQL                         x86_64               4.013-3.el6                               base                                 134 k
 perl-Time-HiRes                        x86_64               4:1.9721-144.el6                          base                                  49 k
Updating for dependencies:
 perl                                   x86_64               4:5.10.1-144.el6                          base                                  10 M
 perl-Compress-Raw-Zlib                 x86_64               1:2.021-144.el6                           base                                  70 k
 perl-Compress-Zlib                     x86_64               2.021-144.el6                             base                                  46 k
 perl-IO-Compress-Base                  x86_64               2.021-144.el6                             base                                  70 k
 perl-IO-Compress-Zlib                  x86_64               2.021-144.el6                             base                                 136 k
 perl-Module-Pluggable                  x86_64               1:3.90-144.el6                            base                                  41 k
 perl-Pod-Escapes                       x86_64               1:1.04-144.el6                            base                                  33 k
 perl-Pod-Simple                        x86_64               1:3.13-144.el6                            base                                 213 k
 perl-libs                              x86_64               4:5.10.1-144.el6                          base                                 579 k
 perl-version                           x86_64               3:0.77-144.el6                            base                                  52 k

在rpm包安裝的時候出現依賴報錯,我們檢查了yum安裝的時候出現的依賴軟件包,根據提示安裝相關的軟件即可,例如:

yum  install -y  perl-DBD-MySQL  perl-Time-HiRes

再執行rpm安裝命令

rpm  -ivh   percona-xtrabackup-22-2.2.13-1.el6.x86_64.rpm

安裝成功,就可以備份測試了!

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

乌海市| 涞源县| 搜索| 江都市| 彭山县| 灵川县| 呼图壁县| 沙湾县| 石屏县| 新兴县| 建德市| 巧家县| 新蔡县| 广宗县| 蒙山县| 高雄市| 云梦县| 武清区| 衡东县| 韶关市| 博湖县| 隆尧县| 上杭县| 吉安县| 南昌县| 神农架林区| 乡城县| 徐闻县| 余姚市| 抚松县| 托克托县| 乌兰浩特市| 米易县| 鹤峰县| 东乌珠穆沁旗| 遂川县| 白朗县| 渑池县| 博客| 双峰县| 滦平县|