在 debian 和 ubuntu 上配置 percona 存储库

2019年1月14日

如果您正在运行基于 deb 的 linux 发行版, 请使用apt的包管理器从官方存储库中安装 percona 软件。

编译安装依赖项(不确定的情况下)
apt-get install -y git scons gcc g++ openssl check cmake bison libboost-all-dev libasio-dev libaio-dev libncurses5-dev libreadline-dev

获取存储库包:

wget https://repo.percona.com/apt/percona-release_0.1-6.$(lsb_release -sc)_all.deb

安装存储库包:

sudo dpkg -i percona-release_0.1-6.$(lsb_release -sc)_all.deb

更新本地apt的缓存:

sudo apt-get update

确保 percona 包可用:

sudo apt-cache search percona

您应该会看到类似于以下内容的输出:

percona-xtrabackup-dbg - Debug symbols for Percona XtraBackup
percona-xtrabackup-test - Test suite for Percona XtraBackup
percona-xtradb-cluster-client - Percona XtraDB Cluster database client
percona-xtradb-cluster-server - Percona XtraDB Cluster database server
percona-xtradb-cluster-testsuite - Percona XtraDB Cluster database regression test suite
percona-xtradb-cluster-testsuite-5.5 - Percona Server database test suite
安装 Percona
If you previously had MySQL installed on the server, there might be an AppArmor profile which will prevent Percona XtraDB Cluster nodes from communicating with each other. The best solution is to remove the apparmor package entirely:

$ sudo apt-get remove apparmor

apt-get install percona-xtradb-cluster-57
启动数据库
service mysql stop

没有评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注