With the CentOS project switching its focus to CentOS Stream, one of the alternatives that aim to function as a downstream build (building and releasing packages after they’re released by Red Hat) is Rocky Linux. This how-to shows how to install Percona Server for MySQL 8.0 on the Rocky Linux distribution.
You can get the information on the distribution release version by checking the /etc/redhat-release file:
|
1 2 |
[root@rocky ~]# cat /etc/redhat-release Rocky Linux release 8.4 (Green Obsidian) |
Downloading and Installing the percona-release repository package for Red Hat Linux and derivatives:
|
1 |
[root@rocky ~]# yum install -y https://repo.percona.com/yum/percona-release-latest.noarch.rpm |
This should result in:
|
1 2 3 4 5 6 7 8 |
… Verifying : percona-release-1.0-26.noarch 1/1 Installed: percona-release-1.0-26.noarch Complete! |
Once the repository package is installed, you should set up the Percona Server for MySQL 8.0 repository by running:
|
1 |
[root@rocky ~]# percona-release setup ps80 |
Please note that you’ll be prompted to disable the mysql module to install Percona Server packages:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
* Disabling all Percona Repositories On RedHat 8 systems it is needed to disable dnf mysql module to install Percona-Server Do you want to disable it? [y/N] y Disabling dnf module... Percona Release release/noarch YUM repository 6.3 kB/s | 1.6 kB 00:00 Dependencies resolved. ============================================================================= Package Architecture Version Repository Size ============================================================================= Disabling modules: mysql Transaction Summary ============================================================================== Complete! dnf mysql module was disabled * Enabling the Percona Server 8.0 repository * Enabling the Percona Tools repository <*> All done! |
This part is also covered in the Percona Server for MySQL documentation.
1. Installing the latest Percona Server 8.0 binaries:
|
1 |
[root@rocky ~]# yum -y install percona-server-server |
This will also install all the required dependencies:
|
1 2 3 4 5 6 7 8 9 10 |
Installed: compat-openssl10-1:1.0.2o-3.el8.x86_64 libaio-0.3.112-1.el8.x86_64 percona-server-client-8.0.23-14.1.el8.x86_64 percona-server-server-8.0.23-14.1.el8.x86_64 percona-server-shared-8.0.23-14.1.el8.x86_64 percona-server-shared-compat-8.0.23-14.1.el8.x86_64 Complete! |
2. After installation is done, you can start the mysqld service:
|
1 |
[root@rocky ~]# systemctl start mysqld |
3. Once the service is running you can check the status by running:
|
1 |
[root@rocky ~]# systemctl status mysqld |
You should get similar output to:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
● mysqld.service - MySQL Server Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2021-06-28 10:23:22 UTC; 6s ago Docs: man:mysqld(8) http://dev.mysql.com/doc/refman/en/using-systemd.html Process: 37616 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS) Main PID: 37698 (mysqld) Status: "Server is operational" Tasks: 39 (limit: 23393) Memory: 450.7M CGroup: /system.slice/mysqld.service └─37698 /usr/sbin/mysqld Jun 28 10:23:12 rocky systemd[1]: Starting MySQL Server... Jun 28 10:23:22 rocky systemd[1]: Started MySQL Server |
From this process, we can see that the installation on RockyLinux is the same as installing Percona Server for MySQL on CentOS/Red Hat.
Percona Distribution for MySQL is the most complete, stable, scalable, and secure, open-source MySQL solution available, delivering enterprise-grade database environments for your most critical business applications… and it’s free to use!
Resources
RELATED POSTS