top of page

Posts

How to Install Old Version of MySQL



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.


wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.24-1.el7.x86_64.rpm-bundle.tar

File expanasion

Once the download is done, expand the file.


tar -xvf mysql-5.7.24-1.el7.x86_64.rpm-bundle.tar

Local install

Install the RPM package to the local computer.

localinstall the following below with yum.

・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

Check

The installation is done!


[root@localhost src]# mysql --version
mysql  Ver 14.14 Distrib 5.7.24, for Linux (x86_64) using  EditLine wrapper

Summary

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

Comments


bottom of page