Skip to content

Install Percona XtraDB Cluster on Red Hat Enterprise Linux and CentOS

A list of the supported platforms by products and versions is available in Percona Software and Platform Lifecycle.

We gather Telemetry data in the Percona packages and Docker images.

You can install Percona XtraDB Cluster with the following methods:

  • Use the official repository using YUM

  • Download and manually install the Percona XtraDB Cluster packages from Percona Product Downloads.

  • Use the Percona Software repositories

This documentation describes using the Percona Software repositories.

Prerequisites

Installing Percona XtraDB Cluster requires that you either are logged in as a user with root privileges or can run commands with sudo.

Percona XtraDB Cluster requires the specific ports for communication. Make sure that the following ports are available:

  • 3306

  • 4444

  • 4567

  • 4568

For information on SELinux, see Enabling SELinux.

Install from Percona Software Repository

For more information on the Percona Software repositories and configuring Percona Repositories with percona-release, see the Percona Software Repositories Documentation.

$ sudo yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
$ sudo percona-release enable-only pxc-80 release
$ sudo percona-release enable tools release
$ sudo yum install percona-xtradb-cluster
$ sudo yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
$ sudo percona-release setup pxc-80
$ sudo yum install percona-xtradb-cluster

After installation

After the installation, start the mysql service and find the temporary password using the grep command.

$ sudo service mysql start
$ sudo grep 'temporary password' /var/log/mysqld.log

Use the temporary password to log into the server:

$ mysql -u root -p

Run an ALTER USER statement to change the temporary password, exit the client, and stop the service.

mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'rootPass';
mysql> exit
$ sudo service mysql stop

Next steps

Configure the node according to the procedure described in Configuring Nodes for Write-Set Replication.

Get expert help

If you need assistance, visit the community forum for comprehensive and free database knowledge, or contact our Percona Database Experts for professional support and services.


Last update: 2023-11-01