34

Installing Percona Server for MySQL on Rocky Linux 8

 3 years ago
source link: https://www.percona.com/blog/installing-percona-server-for-mysql-on-rocky-linux-8/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Installing Percona Server for MySQL on Rocky Linux 8

MySQL on Rocky Linux 8With 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:

Shell
[root@rocky ~]# cat /etc/redhat-release
Rocky Linux release 8.4 (Green Obsidian)

Installing and Setting up the Percona Server for MySQL 8.0  Repository

Downloading and Installing the percona-release repository package for Red Hat Linux and derivatives:

Shell
[root@rocky ~]# yum install -y https://repo.percona.com/yum/percona-release-latest.noarch.rpm

This should result in:

Shell
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:

Shell
[root@rocky ~]#  percona-release setup ps80

Please note that you’ll be prompted to disable the mysql module to install Percona Server packages:

Shell
* 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!

Installing and Setting up the Percona Server for MySQL 8.0 Binaries

This part is also covered in the Percona Server for MySQL documentation.

1. Installing the latest Percona Server 8.0 binaries:

Shell
[root@rocky ~]# yum -y install percona-server-server

This will also install all the required dependencies:

Shell
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:

Shell
[root@rocky ~]# systemctl start mysqld

3. Once the service is running you can check the status by running:

Shell
[root@rocky ~]# systemctl status mysqld

You should get similar output to:

Shell
● 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.

STAY UP-TO-DATE With Percona!

p

Join 33,000+ of your fellow open-source enthusiasts! Our newsletter provides updates on Percona open source software releases, technical resources, and valuable MySQL, MariaDB, PostgreSQL, and MongoDB-related articles. Get information about Percona Live, our technical webinars, and upcoming events and meetups where you can talk with our experts.

Enter your work email address:*

By submitting my information I agree that Percona may use my personal data in send communication to me about Percona services. I understand that I can unsubscribe from the communication at any time in accordance with the Percona Privacy Policy.

Leave a Reply Cancel reply


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK