Install Percona XtraDB Cluster-based variant¶
We gather Telemetry data on Percona XtraDB Cluster in the Percona packages and Docker images.
Prerequisites¶
To install Percona software, you need to configure the required repository. To simplify this process, use the percona-release
repository management tool.
-
Install GnuPG and curl
$ sudo apt install gnupg2 curl
-
Install percona-release. If you have it installed, update percona-release to the latest version.
Procedure¶
Important
Run the following commands as the root user or via sudo
.
Enable Percona repository¶
To enable the desired repository, we recommend to use the setup
subcommand of percona-release
.
$ sudo percona-release setup pdps-8.0
Tip
To enable the minor version repository, use the following command:
$ sudo percona-release setup pdpxc-8.0.20
Install Percona Distribution for MySQL packages¶
-
Install Percona XtraDB Cluster:
$ sudo apt install percona-xtradb-cluster
-
Install HAProxy:
$ sudo apt install percona-haproxy
-
Install the components. Use the commands below to install the required components:
Install Percona XtraBackup:
$ sudo apt install percona-xtrabackup-80
Install Percona Toolkit:
$ sudo apt install percona-toolkit
Important
Run the following commands as the root user or via sudo
.
Enable Percona repository¶
To enable the desired repository, we recommend to use the setup
subcommand of percona-release
.
$ sudo percona-release setup pdps-8.0
Tip
To enable the minor version repository, use the following command:
$ sudo percona-release setup pdpxc-8.0.20
Install Percona Distribution for MySQL packages¶
-
Install Percona XtraDB Cluster:
$ sudo yum install percona-xtradb-cluster
-
Install HAProxy:
$ sudo yum install percona-haproxy
-
Install the components. Use the commands below to install the required components:
Install Percona XtraBackup:
$ sudo yum install percona-xtrabackup-80
Install Percona Toolkit:
$ sudo yum install percona-toolkit
Run Percona Distribution for MySQL¶
Percona Distribution for MySQL is not started automatically on Red Hat Enterprise Linux and CentOS after the installation is complete.
Start it manually using the following command:
$ sudo systemctl start mysql
Confirm that the service is running:
$ sudo systemctl status mysql
Stop the service:
$ sudo systemctl stop mysql