Redhat Enterprise Linux 8 packages have been released into our repositories. Recent versions of Percona Server for MySQL, Percona XtraDB Cluster, Percona XtraBackup, Percona Server for MongoDB, Percona Toolkit, and the PMM Client can now be automatically installed via Redhats dnf utility.
How to install RHEL 8
Visit https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux and follow the instructions. If you have a paid subscription, you will be able to download the RHEL 8 DVD ISO and use this to install the operating system on a physical or virtual machine. You may also signup for a free 30-day trial.
Once installed, you will need to register the instance with Redhat using subscription-manager in order to update your instance. While logged in as a user with administrator privileges from shell prompt, issue the following commands:
1
2
3
4
|
$ sudo subscription–manager register
(provide Red Hat account Username and Password)
$ sudo subscription–manager attach —auto
$ sudo dnf update
|
How to install Percona packages for RHEL 8
After you have started the RHEL 8 instance and registered it with Redhat, you can install the percona-release package which will allow you to configure the correct repositories for the product you want to install.
1
|
$ sudo dnf install https://repo.percona.com/yum/percona–release–latest.noarch.rpm
|
Installation instructions per product
Newer Percona products are separated into their own repositories in order to reduce dependency conflicts with other Percona software versions. The percona-release script is used to configure the correct repositories for each product.
Percona Server 8.0.x
Percona Server 8.0.x is deployed into a separate repository. Using the percona-release tool, set up the ps80 product.
Note: Due to the modularity features built into RHEL 8’s dnf software package manager, the mysql module must first be disabled before installing Percona Server 8.0.
1
2
3
|
$ sudo dnf module disable mysql
$ sudo percona–release setup ps80
$ sudo dnf install percona–server–server percona–server–client
|
If you want to install the MyRocks or TokuDB packages
1
2
|
$ sudo dnf install percona–server–rocksdb
$ sudo dnf install percona–server–tokudb
|
After installation you will need to start the server, and use the assigned temporary password to assign a new one:
1
2
3
|
$ sudo systemctl start mysqld
$ sudo grep ‘temporary password’ /var/log/mysqld.log
$ mysqladmin –uroot –p password
|
Percona Server 5.7.x
Percona Server 5.7.x is deployed into the “original” repository location.
Note: Due to the modularity features built into RHEL 8’s dnf software package manager, the mysql module must first be disabled before installing Percona Server 8.0.
1
2
3
|
$ sudo dnf module disable mysql
$ sudo percona–release setup ps57
$ sudo dnf install Percona–Server–server–57 Percona–Server–client–57
|
If you want to install the MyRocks or TokuDB packages:
1
2
|
$ sudo dnf install Percona–Server–rocksdb–57
$ sudo dnf install Percona–Server–tokudb–57
|
After installation you will need to start the server, and use the assigned temporary password to assign a new one:
1
2
3
|
$ sudo systemctl start mysqld
$ sudo grep ‘temporary password’ /var/log/mysqld.log
$ mysqladmin –uroot –p password
|
Percona XtraBackup 8.0.x
Percona XtraBackup 8.0.x is deployed into a separate tools repository. If you have configured the repository using the percona-release setup ps80 command no additional repository configuration is required. If you are installing Percona XtraBackup 8.0 for use with MySQL Community 8.0 you will need to use the percona-release tool to enable the tools repository which contains XtraBackup, Toolkit, the PMM Client and other dependencies. If you have followed the instructions for Percona Server 8.0 above, the tools repository is enabled.
Note: Due to the modularity features built into RHEL 8’s dnf software package manager, the mysql module must first be disabled before installing Percona Server 8.0.
To install and use with Percona Server 8.0
1
2
3
|
$ sudo dnf module disable mysql
$ sudo percona–release setup ps80
$ sudo dnf install percona–xtrabackup–80
|
To install and use with MySQL Community 8.0
1
2
|
$ sudo percona–release enable–only tools
$ sudo dnf install percona–xtrabackup–80
|
Percona XtraBackup 2.4.x
Percona XtraBackup 2.4.x is deployed into the “original” repository location. This repository is enabled by default so no repository configuration is required.
1
|
$ sudo dnf install percona–xtrabackup–24
|
Percona XtraDB Cluster 5.7.x
Percona XtraDB Cluster 5.7.x is deployed into the “original” repository location. This repository is enabled by default so no repository configuration is required.
Note: Due to the modularity features built into RHEL 8’s dnf software package manager, the mysql module must first be disabled before installing Percona Server 8.0.
1
2
3
|
$ sudo dnf module disable mysql
$ sudo percona–release setup pxc57
$ sudo dnf install Percona–XtraDB–Cluster–57
|
Percona Server for MongoDB 4.0.x
Percona Server for MongoDB 4.0.x is deployed into a separate repository. Using the percona-release tool, set up the psmdb40 product repositories.
1
2
|
$ sudo percona–release setup psmdb40
$ sudo dnf install percona–server–mongodb
|
Percona Toolkit 3.0.x
Percona Toolkit 3.0.x is deployed into both the “original” repository location and the new tools location. This allows Percona Toolkit to be easily used with different products. If you have set up one of the server products above, Percona Toolkit 3.0.x will be available.
Note: There is a known issue with Percona Toolkit and RHEL8. Percona Toolkit uses the RHEL8 perl-DBD-MySQL database driver which is linked against the MariaDB C Connector. The version of this connector that ships with RHEL8 does not support MySQL 8.0 SHA-2 (SHA256) authentication. Therefore, trying to connect to a Percona Server 8.0 or MySQL Community 8.0 instance that has this authentication mode enabled will fail. The SHA-2 authentication plugin is enabled by default. However, at the time of this writing, the MySQL Community 8.0 server that ships with RHEL8 disables this authentication plugin to workaround the incompatibility with the MariaDB C Connector. Percona Server 8.0 does not disable SHA-2 by default.
1
|
$ sudo dnf install percona–toolkit
|
PMM Client 1.x
PMM Client 1.x is deployed into both the “original” repository location and the new tools location. This allows PMM Client to be easily used with different products. If you have enabled one of the server products above, PMM Client will be available. This “original” repository is enabled by default so no repository configuration is required.
1
|
$ sudo dnf install pmm–client
|