亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

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

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

怎樣進行percona-xtrabackup安裝

發布時間:2021-10-08 15:34:23 來源:億速云 閱讀:147 作者:柒染 欄目:MySQL數據庫

這篇文章給大家介紹怎樣進行percona-xtrabackup安裝,內容非常詳細,感興趣的小伙伴們可以參考借鑒,希望對大家能有所幫助。

Linux系統環境:

Red Hat Enterprise Linux Server release 6.5 (Santiago)

MySQL版本:5.7.9 Source distribution

1. Install the Percona repository

[root@ora yum.repos.d]# wget 
[root@ora yum.repos.d]# rpm -ivh percona-release-0.1-3.noarch.rpm 
warning: percona-release-0.1-3.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Preparing...              ########################################### [100%]
   1:percona-release        ########################################### [100%]

2. Testing the repository

[root@ora yum.repos.d]# yum list | grep percona-xtrabackup
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
percona-xtrabackup.x86_64          2.3.8-1.el6            percona-release-x86_64
percona-xtrabackup-20.x86_64       2.0.8-587.rhel6        percona-release-x86_64
percona-xtrabackup-20-debuginfo.x86_64
percona-xtrabackup-20-test.x86_64  2.0.8-587.rhel6        percona-release-x86_64
percona-xtrabackup-21.x86_64       2.1.9-746.rhel6        percona-release-x86_64
percona-xtrabackup-21-debuginfo.x86_64
percona-xtrabackup-22.x86_64       2.2.13-1.el6           percona-release-x86_64
percona-xtrabackup-22-debuginfo.x86_64
percona-xtrabackup-24.x86_64       2.4.7-2.el6            percona-release-x86_64
percona-xtrabackup-24-debuginfo.x86_64
percona-xtrabackup-debuginfo.x86_64
percona-xtrabackup-test.x86_64     2.3.8-1.el6            percona-release-x86_64
percona-xtrabackup-test-21.x86_64  2.1.9-746.rhel6        percona-release-x86_64
percona-xtrabackup-test-22.x86_64  2.2.13-1.el6           percona-release-x86_64
percona-xtrabackup-test-24.x86_64  2.4.7-2.el6            percona-release-x86_64

3. Install the packages

[root@ora yum.repos.d]# yum install percona-xtrabackup-24
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package percona-xtrabackup-24.x86_64 0:2.4.7-2.el6 will be installed
--> Processing Dependency: libev.so.4()(64bit) for package: percona-xtrabackup-24-2.4.7-2.el6.x86_64
--> Finished Dependency Resolution
Error: Package: percona-xtrabackup-24-2.4.7-2.el6.x86_64 (percona-release-x86_64)
           Requires: libev.so.4()(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

yum install percona-xtrabackup-21

yum install percona-xtrabackup-22

執行以上兩條命令安裝是沒有錯誤提示的

percona-xtrabackup-24依賴libev.so.4(),安裝對應的包即可解決

4. Install the libev-4.15-1.el6.rf.x86_64.rpm 

[root@ora yum.repos.d]# wget 
[root@ora yum.repos.d]# rpm -ivh libev-4.15-1.el6.rf.x86_64.rpm
warning: libev-4.15-1.el6.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing...                ########################################### [100%]
   1:libev                  ########################################### [100%] 
[root@ora yum.repos.d]# yum install percona-xtrabackup-24
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package percona-xtrabackup-24.x86_64 0:2.4.7-2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================
 Package                     Arch         Version             Repository                    Size
=================================================================================================
Installing:
 percona-xtrabackup-24       x86_64       2.4.7-2.el6         percona-release-x86_64       7.9 M

Transaction Summary
=================================================================================================
Install       1 Package(s)

Total download size: 7.9 M
Installed size: 31 M
Is this ok [y/N]: y
Downloading Packages:
percona-xtrabackup-24-2.4.7-2.el6.x86_64.rpm                              | 7.9 MB     04:41     
warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID cd2efd2a: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Percona
Importing GPG key 0xCD2EFD2A:
 Userid : Percona MySQL Development Team <mysql-dev@percona.com>
 Package: percona-release-0.1-3.noarch (installed)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-Percona
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : percona-xtrabackup-24-2.4.7-2.el6.x86_64                                      1/1 
  Verifying  : percona-xtrabackup-24-2.4.7-2.el6.x86_64                                      1/1 

Installed:
  percona-xtrabackup-24.x86_64 0:2.4.7-2.el6                                                     

Complete!

5. Uninstalling Percona XtraBackup

[root@ora yum.repos.d]# yum remove percona-xtrabackup-24

6. backup database

全備的最小權限

mysql> CREATE USER 'bkpuser'@'localhost' IDENTIFIED BY 's3cret';
Query OK, 0 rows affected (0.49 sec)
mysql> GRANT RELOAD, LOCK TABLES, REPLICATION CLIENT,PROCESS ON *.* TO 'bkpuser'@'localhost';
Query OK, 0 rows affected (0.00 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.35 sec)

[root@ora backup]# innobackupex --user=bkpuser --password=s3cret --socket=/tmp/mysql.sock /oracle/app/backup
170620 16:15:27 innobackupex: Starting the backup operation

IMPORTANT: Please check that the backup run completes successfully.
           At the end of a successful backup run innobackupex
           prints "completed OK!".

170620 16:15:27  version_check Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup;mysql_socket=/tmp/mysql.sock' as 'bkpuser'  (using password: YES).
170620 16:15:28  version_check Connected to MySQL server
170620 16:15:28  version_check Executing a version check against the server...
170620 16:15:28  version_check Done.
170620 16:15:28 Connecting to MySQL server host: localhost, user: bkpuser, password: set, port: not set, socket: /tmp/mysql.sock
Using server version 5.7.9
innobackupex version 2.4.7 based on MySQL server 5.7.13 Linux (x86_64) (revision id: 05f1fcf)
xtrabackup: uses posix_fadvise().
xtrabackup: cd to /oracle/app/mysql-5.7/data/
xtrabackup: open files limit requested 0, set to 1024
xtrabackup: using the following InnoDB configuration:
xtrabackup:   innodb_data_home_dir = .
xtrabackup:   innodb_data_file_path = ibdata1:12M:autoextend
xtrabackup:   innodb_log_group_home_dir = ./
xtrabackup:   innodb_log_files_in_group = 2
xtrabackup:   innodb_log_file_size = 50331648
InnoDB: Number of pools: 1
170620 16:15:28 >> log scanned up to (2476814)
省略。。。
170620 16:15:36 [00]        ...done
170620 16:15:36 Backup created in directory '/oracle/app/backup/2017-06-20_16-15-27/'
170620 16:15:36 [00] Writing backup-my.cnf
170620 16:15:36 [00]        ...done
170620 16:15:36 [00] Writing xtrabackup_info
170620 16:15:36 [00]        ...done
xtrabackup: Transaction log of lsn (2476805) to (2476814) was copied.
170620 16:15:36 completed OK!


backup_type說明為全備。

關于怎樣進行percona-xtrabackup安裝就分享到這里了,希望以上內容可以對大家有一定的幫助,可以學到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。

向AI問一下細節

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

AI

黄梅县| 将乐县| 城步| 突泉县| 论坛| 桂林市| 蒙阴县| 凌源市| 岳普湖县| 淮滨县| 永和县| 新竹县| 福建省| 兴义市| 永安市| 罗定市| 和政县| 昆山市| 天台县| 西华县| 外汇| 读书| 遵化市| 平定县| 治多县| 潼关县| 南充市| 秭归县| 萍乡市| 马公市| 花莲县| 新竹县| 宜城市| 河东区| 驻马店市| 兰西县| 开远市| 桃园县| 晋江市| 象山县| 镇康县|