使用 Yum 安装 Percona Server

红薯 发布于 2011/04/18 23:34
阅读 5K+
收藏 6

最简单的方法是直接安装 rpm 包:

 

# rpm -Uhv http://www.percona.com/downloads/percona-release/percona-release-0.0-1.x86_64.rpm
Retrieving http://www.percona.com/downloads/percona-release/percona-release-0.0-1.x86_64.rpm Preparing... ########################################### [100%] 1:percona-release ########################################### [100%]

其他独立的 RPM 包,包括源码下载地址:
http://www.percona.com/downloads/percona-release/

手工安装:

创建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

GPG key 保存到 /etc/pki/rpm-gpg/RPM-GPG-KEY-percona 文件

测试 Yum 库:

yum list | grep percona

输出信息:

percona-release.x86_64                     0.0-1                       installed
...
Percona-Server-client-51.x86_64            5.1.47-rel11.1.51.rhel5     percona  
Percona-Server-devel-51.x86_64             5.1.47-rel11.1.51.rhel5     percona  
Percona-Server-server-51.x86_64            5.1.47-rel11.1.51.rhel5     percona  
Percona-Server-shared-51.x86_64            5.1.47-rel11.1.51.rhel5     percona  
Percona-Server-test-51.x86_64              5.1.47-rel11.1.51.rhel5     percona  
...
maatkit.noarch                             5240-1                      percona  
xtrabackup.x86_64                          1.2-22.rhel5                percona  

安装RC版本:

rpm -Uhv http://www.percona.com/downloads/percona-release/percona-rc-0.0-2.x86_64.rpm
加载中
0
用户已屏蔽
用户已屏蔽

yum    安装与 自己编译安装哪个更适合大站?

0
wwek
wwek
非常感谢·
0
wwek
wwek

引用来自“滔哥”的答案

yum    安装与 自己编译安装哪个更适合大站?

   yum 二进制安装和编译安装 没什么区别。 编译安装就是 定制化而已。
0
wwek
wwek
这里一定要安装 Percona-Server-shared-compat 包,否则会报错的。
Running Transaction Test
Transaction Check Error:
file /usr/lib/libmysqlclient.so conflicts between attempted installs of Percona-Server-shared-51-5.1.66-rel14.2.501.rhel6.i686 and Percona-Server-shared-55-5.5.28-rel29.3.388.rhel6.i686
file /usr/lib/libmysqlclient_r.so conflicts between attempted installs of Percona-Server-shared-51-5.1.66-rel14.2.501.rhel6.i686 and Percona-Server-shared-55-5.5.28-rel29.3.388.rhel6.i686
Error Summary
-------------
返回顶部
顶部