Installing Percona XtraDB Cluster on Red Hat Enterprise Linux and CentOS¶
.rpm packages for 64-bit versions of Red Hat Enterprise
Linux 7 (Maipo) and Red Hat Enterprise Linux 8 (Ootpa) including its derivatives
that claim full binary compatibility, for example: CentOS, Oracle Linux, Amazon
Linux AMI, and so on.
Percona XtraDB Cluster should work on other RPM-based distributions,
but it is tested only on RHEL and CentOS versions 7 and 8.
The packages are available in the official Percona software repository
and on the download page.
It is recommended to intall Percona XtraDB Cluster from the official repository
You need to have root access on the node
where you will be installing Percona XtraDB Cluster
(either logged in as a user with root privileges
or be able to run commands with
Make sure that the following ports are not blocked by firewall or used by other software. Percona XtraDB Cluster requires them for communication.
The SELinux security module
can constrain access to data for Percona XtraDB Cluster.
The best solution is to change the mode
permissive by running the following command:
This only changes the mode at runtime.
To run SELinux in permissive mode after a reboot,
SELINUX=permissive in the
Installing from Percona Repository¶
Configure Percona repositories as described in Percona Software Repositories Documentation.
Install the Percona XtraDB Cluster packages:
$ sudo yum install percona-xtradb-cluster
Alternatively you can install the
percona-xtradb-cluster-fullmeta package, which contains the following additional packages:
Start the Percona XtraDB Cluster server:
$ sudo service mysql start
Copy the automatically generated temporary password for the superuser account:
$ sudo grep 'temporary password' /var/log/mysqld.log
Use this password to log in as
$ mysql -u root -p
Change the password for the superuser account and log out. For example:
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'rootPass'; Query OK, 0 rows affected (0.00 sec) mysql> exit Bye
$ sudo service mysql stop