一、下载

http://www.percona.com/downloads/Percona-Server-5.5/

Percona-Server-5.5.33-31.1

选择 binary

选择linux

选择x86_64

二、文档:

http://www.percona.com/doc/percona-server/5.5/

http://dev.mysql.com/doc/refman/5.5/en/binary-installation.html  --主要参考这篇文档

三、安装

[root@tthost3 ~]# mv Percona-Server-5.5.33-rel31.1-566.Linux.x86_64.tar.gz  /usr/local/

安装要放的真是路径

[root@tthost3 ~]# groupadd mysql

[root@tthost3 ~]# useradd –r –g mysql mysql

[root@tthost3 ~]# mv Percona-Server-5.5.33-rel31.1-566.Linux.x86_64.tar.gz  /usr/local/

[root@tthost3 ~]# cd /usr/local

[root@tthost3 ~]# tar zxvf Percona-Server-5.5.33-rel31.1-566.Linux.x86_64.tar.gz

[root@tthost3 local]# ll

total 63104

drwxr-xr-x  2 root root     4096 Apr  5 01:34 bin

drwxr-xr-x  2 root root     4096 Oct  1  2009 etc

drwxr-xr-x  2 root root     4096 Oct  1  2009 games

drwxr-xr-x  2 root root     4096 Oct  1  2009 include

drwxr-xr-x  2 root root     4096 Oct  1  2009 lib

drwxr-xr-x  2 root root     4096 Oct  1  2009 lib64

drwxr-xr-x  2 root root     4096 Oct  1  2009 libexec

drwxr-xr-x 14 root root     4096 Aug 27  2013 Percona-Server-5.5.33-rel31.1-566.Linux.x86_64

-rw-r--r--  1 root root 64459501 Jun 30 12:44 Percona-Server-5.5.33-rel31.1-566.Linux.x86_64.tar.gz

drwxr-xr-x  2 root root     4096 Oct  1  2009 sbin

drwxr-xr-x  4 root root     4096 Apr  4 23:39 share

drwxr-xr-x  2 root root     4096 Oct  1  2009 src

[root@tthost3 local]# ln -s /usr/local/Percona-Server-5.5.33-rel31.1-566.Linux.x86_64 mysql

[root@tthost3 local]# ll

total 63104

drwxr-xr-x  2 root root     4096 Apr  5 01:34 bin

drwxr-xr-x  2 root root     4096 Oct  1  2009 etc

drwxr-xr-x  2 root root     4096 Oct  1  2009 games

drwxr-xr-x  2 root root     4096 Oct  1  2009 include

drwxr-xr-x  2 root root     4096 Oct  1  2009 lib

drwxr-xr-x  2 root root     4096 Oct  1  2009 lib64

drwxr-xr-x  2 root root     4096 Oct  1  2009 libexec

lrwxrwxrwx  1 root root       57 Jun 30 12:55 mysql -> /usr/local/Percona-Server-5.5.33-rel31.1-566.Linux.x86_64

drwxr-xr-x 14 root root     4096 Aug 27  2013 Percona-Server-5.5.33-rel31.1-566.Linux.x86_64

-rw-r--r--  1 root root 64459501 Jun 30 12:44 Percona-Server-5.5.33-rel31.1-566.Linux.x86_64.tar.gz

drwxr-xr-x  2 root root     4096 Oct  1  2009 sbin

drwxr-xr-x  4 root root     4096 Apr  4 23:39 share

drwxr-xr-x  2 root root     4096 Oct  1  2009 src

[root@tthost3 local]# cd mysql/

[root@tthost3 mysql]# chown -R mysql .

[root@tthost3 mysql]# chgrp -R mysql .

[root@tthost3 mysql]# ll

total 80

drwxr-xr-x  2 mysql mysql  4096 Aug 27  2013 bin

-rw-r--r--  1 mysql mysql 17987 Aug 27  2013 COPYING

-rw-r--r--  1 mysql mysql  1703 Aug 27  2013 COPYING-jemalloc

drwxr-xr-x  3 mysql mysql  4096 Aug 27  2013 data

drwxr-xr-x  2 mysql mysql  4096 Aug 27  2013 docs

drwxr-xr-x  4 mysql mysql  4096 Aug 27  2013 include

-rw-r--r--  1 mysql mysql   301 Aug 27  2013 INSTALL-BINARY

drwxr-xr-x  3 mysql mysql  4096 Aug 27  2013 lib

drwxr-xr-x  4 mysql mysql  4096 Aug 27  2013 man

drwxr-xr-x  3 mysql mysql  4096 Aug 27  2013 mysql

drwxr-xr-x 10 mysql mysql  4096 Aug 27  2013 mysql-test

-rw-r--r--  1 mysql mysql  2496 Aug 27  2013 README

drwxr-xr-x  2 mysql mysql  4096 Aug 27  2013 scripts

drwxr-xr-x 27 mysql mysql  4096 Aug 27  2013 share

drwxr-xr-x  4 mysql mysql  4096 Aug 27  2013 sql-bench

drwxr-xr-x  3 mysql mysql  4096 Aug 27  2013 support-files

[root@tthost3 mysql]# ./scripts/mysql_install_db --user=mysql

Installing MySQL system tables...

OK

Filling help tables...

OK

To start mysqld at boot time you have to copy

support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !

To do so, start the server, then issue the following commands:

./bin/mysqladmin -u root password 'new-password'

./bin/mysqladmin -u root -h tthost3 password 'new-password'

Alternatively you can run:

./bin/mysql_secure_installation

which will also give you the option of removing the test

databases and anonymous user created by default.  This is

strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:

cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl

cd ./mysql-test ; perl mysql-test-run.pl

Please report any problems with the ./bin/mysqlbug script!

Percona recommends that all production deployments be protected with a support

contract (http://www.percona.com/mysql-suppport/) to ensure the highest uptime,

be eligible for hot fixes, and boost your team's productivity.

以上有几点很重要!

[root@tthost3 mysql]# chown -R root .

[root@tthost3 mysql]# ll

total 80

drwxr-xr-x  2 root mysql  4096 Aug 27  2013 bin

-rw-r--r--  1 root mysql 17987 Aug 27  2013 COPYING

-rw-r--r--  1 root mysql  1703 Aug 27  2013 COPYING-jemalloc

drwxr-xr-x  5 root mysql  4096 Jun 30 12:59 data

drwxr-xr-x  2 root mysql  4096 Aug 27  2013 docs

drwxr-xr-x  4 root mysql  4096 Aug 27  2013 include

-rw-r--r--  1 root mysql   301 Aug 27  2013 INSTALL-BINARY

drwxr-xr-x  3 root mysql  4096 Aug 27  2013 lib

drwxr-xr-x  4 root mysql  4096 Aug 27  2013 man

drwxr-xr-x  3 root mysql  4096 Aug 27  2013 mysql

drwxr-xr-x 10 root mysql  4096 Aug 27  2013 mysql-test

-rw-r--r--  1 root mysql  2496 Aug 27  2013 README

drwxr-xr-x  2 root mysql  4096 Aug 27  2013 scripts

drwxr-xr-x 27 root mysql  4096 Aug 27  2013 share

drwxr-xr-x  4 root mysql  4096 Aug 27  2013 sql-bench

drwxr-xr-x  3 root mysql  4096 Aug 27  2013 support-files

[root@tthost3 mysql]# chown -R mysql data

[root@tthost3 mysql]# ll

total 80

drwxr-xr-x  2 root  mysql  4096 Aug 27  2013 bin

-rw-r--r--  1 root  mysql 17987 Aug 27  2013 COPYING

-rw-r--r--  1 root  mysql  1703 Aug 27  2013 COPYING-jemalloc

drwxr-xr-x  5 mysql mysql  4096 Jun 30 12:59 data

下面的这些是可选的:

[root@tthost3 mysql]# cp support-files/my-medium.cnf /etc/my.cnf

[root@tthost3 mysql]# ./bin/mysqld_safe --user=mysql &

[1] 3813

[root@tthost3 mysql]# 140630 13:07:39 mysqld_safe Logging to '/usr/local/mysql/data/tthost3.err'.

140630 13:07:39 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data

[root@tthost3 mysql]# ps -ef | grep mysql

root      3813  3607  0 13:07 pts/2    00:00:00 /bin/sh ./bin/mysqld_safe --user=mysql

mysql     4067  3813  2 13:07 pts/2    00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/mysql/plugin --user=mysql --log-error=/usr/local/mysql/data/tthost3.err --pid-file=/usr/local/mysql/data/tthost3.pid --socket=/tmp/mysql.sock --port=3306

root      4088  3607  0 13:07 pts/2    00:00:00 grep mysql

以下的选项是可选的:

编辑mysql.server

将Percona-Server-5.5.33-rel31.1-566.Linux.x86_64替换成mysql 真实路径

[root@tthost3 mysql]# vi support-files/mysql.server

修改前:

mysqld_pid_file_path=

if test -z "$basedir"

then

basedir=/usr/local/Percona-Server-5.5.33-rel31.1-566.Linux.x86_64

bindir=/usr/local/Percona-Server-5.5.33-rel31.1-566.Linux.x86_64/bin

if test -z "$datadir"

then

datadir=/usr/local/Percona-Server-5.5.33-rel31.1-566.Linux.x86_64/data

fi

sbindir=/usr/local/Percona-Server-5.5.33-rel31.1-566.Linux.x86_64/bin

libexecdir=/usr/local/Percona-Server-5.5.33-rel31.1-566.Linux.x86_64/bin

else

修改后:

mysqld_pid_file_path=

if test -z "$basedir"

then

basedir=/usr/local/mysql

bindir=/usr/local/mysql/bin

if test -z "$datadir"

then

datadir=/usr/local/mysql/data

fi

sbindir=/usr/local/mysql/bin

libexecdir=/usr/local/mysql/bin

else

[root@tthost3 mysql]# cp support-files/mysql.server /etc/init.d/mysqld

[root@tthost3 mysql]# chkconfig --add mysqld

[root@tthost3 mysql]# chkconfig --list |grep mysqld

mysqld            0:off 1:off 2:on 3:on 4:on 5:on 6:off

[root@tthost3 mysql]#

[root@tthost3 mysql]# service mysqld stop

Shutting down MySQL (Percona Server)..140630 13:17:40 mysqld_safe mysqld from pid file /usr/local/mysql/data/tthost3.pid ended

[  OK  ]

[1]+  Done                    ./bin/mysqld_safe --user=mysql

[root@tthost3 mysql]# ps -ef | grep mysql

root      4194  3607  0 13:18 pts/2    00:00:00 grep mysql

[root@tthost3 mysql]# service mysqld start

Starting MySQL (Percona Server).                           [  OK  ]

[root@tthost3 mysql]# ps -ef | grep mysql

root      4206     1  0 13:18 pts/2    00:00:00 /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/tthost3.pid

mysql     4471  4206  1 13:18 pts/2    00:00:00 /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/mysql/plugin --user=mysql --log-error=/usr/local/mysql/data/tthost3.err --pid-file=/usr/local/mysql/data/tthost3.pid --socket=/tmp/mysql.sock --port=3306

root      4496  3607  0 13:18 pts/2    00:00:00 grep mysql

安装完成!

另外有个地方需要注意一下,我们的实际安装路径是:

/usr/local/Percona-Server-5.5.33-rel31.1-566.Linux.x86_64

/usr/local/mysql只是做了一个软链接

启动脚本中,mysqld,mysqld_safe,mysql.server脚本中basedir,datadir是默认在

/usr/local/Percona-Server-5.5.33-rel31.1-566.Linux.x86_64目录下面,就是说用脚本可以直接启动,因为percona默认建议是安装在这个下面:

/usr/local/Percona-Server-5.5.33-rel31.1-566.Linux.x86_64

这里只是做了mysql的一个软链接和oracle mysql兼容下目录而已 ,如果要把mysql.server拷贝到/etc/init.d/目录下,脚本中目录路径也不一定要修改的,怎样都能启动:

Service mysqld start

Percona-Server-5.5.33-31.1安装的更多相关文章

  1. Linux 下 YUM 安装 Percona Server 5.6

    Percona Server 是 MySQL 的衍生版,专注于 Linux/BSD 下 MySQL 数据库服务器的改进, 在功能和性能上较 MySQL 有着显著的提升. Percona Server ...

  2. percona server 二进制安装下编译tpcc-mysql的坑

    出于习惯,percona server的部署都是通过二进制包自动化安装,结果遇到一个硕大无比的坑,编译TPCC-MySQL时出现警告 10:49:36 root@DB-Master:~/tpcc-my ...

  3. CentOS 7.2 安装配置 Percona Server

    个人比较喜欢 MYSQL 的轻量,今天花了一点时间把阿里云上的 MYSQL5.7 换成了 Percona-Server ,Percona 是一个开源的 MySQL 衍生版.InnoDB的数据库引擎使得 ...

  4. Percona Server 5.6 安装TokuDB

    系统:Red Hat Enterprise Linux Server release 6.3 (Santiago) 数据库:Percona-Server-5.6.29-rel76.2-Linux.x8 ...

  5. mysql 5.7/percona server/mariadb 10.2安装与服务器参数优化

    建议使用percona server linux generic版,从https://www.percona.com/downloads/Percona-Server-LATEST/下载,现在不在推荐 ...

  6. CentOS 7.5 安装与配置 Percona Server 5.7

    个人比较喜欢 MYSQL 的轻量,今天花了一点时间把阿里云上的 MYSQL5.7 换成了 Percona-Server .Percona 是一个开源的 MySQL 衍生版,TokuDB 的数据库引擎使 ...

  7. ubuntu安装Percona Server

    Percona Server是mysql数据库的一个衍生版本,在性能,稳定性和可管理性上都有很大的提升,目前淘宝的mysql数据库就是基于Percona Server,请原谅我这么喜欢研究淘宝的技术. ...

  8. 如何在 CentOS 7 上安装 Percona Server

    在这篇文章中我们将了解关于 Percona 服务器,一个开源的MySQL,MariaDB的替代品.InnoDB的数据库引擎使得Percona 服务器非常有吸引力,如果你需要的高性能,高可靠性和高性价比 ...

  9. PXC(Percona XtraDB Cluster)集群的安装与配置

    Percona XtraDB Cluster是针对MySQL用户的高可用性和扩展性解决方案,基于Percona Server .其包括了Write Set REPlication补丁,使用Galera ...

  10. Percona Server 5.6.33-79.0 发布

    Percona Server 5.6.33-79.0 发布了,该版本基于 MySQL 5.6.33,包含了所有的 bug 修复,是Percona Server 5.6 系列中的正式版本.该版本主要是修 ...

随机推荐

  1. 框架使用的技术主要是SpringMVC 在此基础上进行扩展

    框架使用的技术主要是SpringMVC 在此基础上进行扩展 1 Web前端使用 2 前段控制器采用SpringMVC零配置 3 IOC容器Spring 4 ORM使用 Mybites或者hiberna ...

  2. mysqldump的流程

    发布时间:2013 年 4 月 6 日 发布者: OurMySQL 来源:P.Linux Laboratory      前几天看到群里在讨论mysqldump导致锁表的问题,为什么一个表已经dump ...

  3. SQL SERVER 查询Job作业基本信息及执行情况

    查询作业基本信息和作业执行情况 SELECT [jop].[job_id] AS '作业唯一标识符' ,[jop].[ name ] AS '作业名称' ,[dp].[ name ] AS '作业创建 ...

  4. UNIX标准化及实现之POSIX标准可选头文件

    POSIX标准定义的可选头文件 头文件 说明 <aio.h> 异步I/O <mqueue.h> 消息队列 <pthread.h> 线程 <sched.h> ...

  5. UNIX基础知识之出错处理

    当UNIX函数出错时,常常会返回一个负值,而且整型变量errno通常被设置为含有附加信息的一个值.例如,open函数如成功执行则返回一个非负文件描述符,如出错则返回-1.在open出错时,有大约15种 ...

  6. C++_快速排序(纯C版本)

    //比较大小 static int compare_int(const void *int1,const void *int2) { if(*(const int*)int1>*(const i ...

  7. java 开源缓存框架--转载

    原文地址:http://www.open-open.com/13.htm  JBossCache/TreeCache  JBossCache是一个复制的事务处理缓存,它允许你缓存企业级应用数据来更好的 ...

  8. poj2388解题报告(排序)

    POJ 2388,题目链接http://poj.org/problem?id=2388 题意: 水题一道 给定n个数,输出中间值,可以用sort,干脆快捷. 代码: //396K 32MS #incl ...

  9. PHP中使用kindeditor

    KindEditor是一套开源的HTML可视化编辑器,主要用于让用户在网站上获得所见即所得编辑效果,兼容IE.Firefox.Chrome. Safari.Opera等主流浏览器.KindEditor ...

  10. wxPython tools img2py

    最近在学习wxPython时,发现img2py工具只能处理单个图标,就自己写了一个简单的小工具,把文件夹下所有的图标文件转化到py文件里, 话不多说,直接上代码: # -*- coding: utf- ...