作為一線運維或者DBA對數(shù)據(jù)備份絕對不會陌生,mysqldump、xtrabackup等常見備份姿勢更是非常熟悉,還有很多商業(yè)備份工具以及其他的開源備份工具,所謂的冷備、熱備、增量備份什么的,各種名詞直接晃悠的你頭疼。接下來跟著我繼續(xù)踩一遍軟件安裝的坑吧。
創(chuàng)新互聯(lián)致力于互聯(lián)網(wǎng)品牌建設與網(wǎng)絡營銷,包括網(wǎng)站制作、網(wǎng)站設計、SEO優(yōu)化、網(wǎng)絡推廣、整站優(yōu)化營銷策劃推廣、電子商務、移動互聯(lián)網(wǎng)營銷等。創(chuàng)新互聯(lián)為不同類型的客戶提供良好的互聯(lián)網(wǎng)應用定制及解決方案,創(chuàng)新互聯(lián)核心團隊十多年專注互聯(lián)網(wǎng)開發(fā),積累了豐富的網(wǎng)站經(jīng)驗,為廣大企業(yè)客戶提供一站式企業(yè)網(wǎng)站建設服務,在網(wǎng)站建設行業(yè)內(nèi)樹立了良好口碑。操作系統(tǒng):CentoS 6.7
Xtrabackup版本:2.2.13
MySQL版本:5.6.30
官網(wǎng)文檔:https://www.percona.com/doc/percona-xtrabackup/2.2/installation/yum_repo.html
常見的安裝方式有源碼包和yum以及RPM等方式,源碼編譯什么比較麻煩,rpm包安裝可能會出現(xiàn)依賴性的問題,本文中剛開始選擇了用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.rpm2、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
根據(jù)文檔配置yum源,然后開始安裝軟件,下載什么很慢,并且出現(xiàn)以下報錯,于是我們就采取下載文件的方式
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安裝
wgetroot@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_64percona-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包安裝的時候出現(xiàn)依賴報錯,我們檢查了yum安裝的時候出現(xiàn)的依賴軟件包,根據(jù)提示安裝相關(guān)的軟件即可,例如:
yum install -y perl-DBD-MySQL perl-Time-HiRes再執(zhí)行rpm安裝命令
rpm -ivh percona-xtrabackup-22-2.2.13-1.el6.x86_64.rpm安裝成功,就可以備份測試了!
另外有需要云服務器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。
網(wǎng)頁題目:CentoS6.X安裝xtrabackup2.2.13-創(chuàng)新互聯(lián)
文章鏈接:http://jinyejixie.com/article26/djesjg.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供移動網(wǎng)站建設、用戶體驗、Google、手機網(wǎng)站建設、動態(tài)網(wǎng)站、自適應網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)