How to install older versions of MySQL

table of contents
Hello! I'm Shimeji from the System Solutions Department.
I was transferred to the SRE team in December, and although things are a bit chaotic, I'm doing my best.
As mentioned in the title, there are times when you want to install an older version of MySQL, but the official website does not provide a repository.
In such cases, please follow the steps below to install it.
(The following example shows the installation of MySQL 5.7.)
Download the RPM Bundle file from the official website
Download the RPM Bundle file of your desired version from the download page.
MySQL Download Page
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.24-1.el7.x86_64.rpm-bundle.tar
Extracting files
Once the download is complete, unpack it
tar -xvf mysql-5.7.24-1.el7.x86_64.rpm-bundle.tar
Local installation
Install the RPM packages you downloaded locally.
→ Run yum install for the following:
mysql-community-server mysql-
community-client
mysql-community-common mysql-community
-devel mysql
-community-libs
mysql-community-libs-compat
yum localinstall mysql-community-server-5.7.24-1.el7.x86_64.rpm mysql-community-client-5.7.24-1.el7.x86_64.rpm mysql-community-common-5.7.24-1.el7.x86_64.rpm mysql-community-devel-5.7.24-1.el7.x86_64.rpm mysql-community-libs-5.7.24-1.el7.x86_64.rpm mysql-community-libs-compat-5.7.24-1.el7.x86_64.rpm
confirmation
Installation successful!
[root@localhost src]# mysql --version mysql Ver 14.14 Distrib 5.7.24, for Linux (x86_64) using EditLine wrapper
summary
I personally had trouble installing older versions of MySQL, so I hope this article will be helpful to someone.
Thank you for your continued support this year.
3