方法一 配置apt源
1、wget https://repo.percona.com/apt/percona-release_0.1-3.$(lsb_release -sc)_all.deb
2、dpkg -i percona-release_0.1-3.$(lsb_release -sc)_all.deb
3、$ sudo apt-get update
4、$ sudo apt-get install percona-server-server-5.6
后面的使用和mysql一致
mysqladmin -u root password "XXXX"
方法二,使用deb 包
1、下载对应的包集合
$ wget https://www.percona.com/downloads/Percona-Server-5.7/Percona-Server-5.7.10-3/binary/debian/jessie/x86_64/Percona-Server-5.7.10-3-r63dafaf-jessie-x86_64-bundle.tar
2、$ tar xvf Percona-Server-5.7.10-3-r63dafaf-jessie-x86_64-bundle.tar
3、$ ls *.deb
libperconaserverclient20-dev_5.7.10-3-1.jessie_amd64.deb
libperconaserverclient20_5.7.10-3-1.jessie_amd64.deb
percona-server-5.7-dbg_5.7.10-3-1.jessie_amd64.deb
percona-server-client-5.7_5.7.10-3-1.jessie_amd64.deb
percona-server-common-5.7_5.7.10-3-1.jessie_amd64.deb
percona-server-server-5.7_5.7.10-3-1.jessie_amd64.deb
percona-server-source-5.7_5.7.10-3-1.jessie_amd64.deb
percona-server-test-5.7_5.7.10-3-1.jessie_amd64.deb
percona-server-tokudb-5.7_5.7.10-3-1.jessie_amd64.deb
4、$ sudo dpkg -i *.deb
注意:这中安装没有解决包依赖关系,在安装之前应该确保以下包已经安装:mysql-common, libjemalloc1, libaio1 and libmecab2
默认安装路径:/var/lib/mysql/
默认配置文件路径:/etc/mysql/my.cnf
Ubuntu和Debian系统安裝 MySQL percona的步骤
原文地址:http://autopython.blog.51cto.com/6681118/1838471