When you want to install an old version of MySQL, but there’s no repository on the official site, you can do these steps to install it.
(I installed MySQL5.7 as an example)
Download a RPM Bundle file from the official website
Go to the download page and then download a RPM Bundle file of the version you want.
Once the download is done, expand the file.
tar -xvf mysql-5.7.24-1.el7.x86_64.rpm-bundle.tar
Install the RPM package to the local computer.
localinstall the following below with yum.
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
The installation is done!
[root@localhost src]# mysql --version mysql Ver 14.14 Distrib 5.7.24, for Linux (x86_64) using EditLine wrapper
I myself had trouble with installing MySQL. I hope this article will be helpful for you.
This blog post is translated from a blog post written by Feroron on our Japanese website Beyond Co..