配置percona的yum仓库
一、先安装依赖:
yum install perl-DBI
yum install perl-DBD-MySQL
yum install perl-Time-HiRes
yum install perl-IO-Socket-SSL
二、配置yum源、
方法1、自动安装percona的yum仓库(以下分别为x86_64和i386平台)
#rpm -ivh http://www.percona.com/downloads/percona-release/percona-release-0.0-1.x86_64.rpm
#rpm -ivh http://www.percona.com/redir/downloads/percona-release/percona-release-0.0-1.i386.rpm
方法2、手动yum仓库
创建文件/etc/yum.repos.d/Percona.repo内容如下:
[percona]
name = CentOS $releasever - Percona
baseurl=http://repo.percona.com/centos/$releasever/os/$basearch/
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-percona
gpgcheck = 1
获取和保存key
#wget http://www.percona.com/redir/downloads/percona-release/RPM-GPG-KEY-percona
#cp RPM-GPG-KEY-percona /etc/pki/rpm-gpg/RPM-GPG-KEY-percona
安装 percona xtrabackup
下面我们就可以安装percona一系列工具了:
安装xtrabackup
#yum -y install percona-xtrabackup
安装toolkit
#yum -y install percona-toolkit
时间: 2024-11-19 09:57:27