

Where X is the minor version that you want So, the general command will be like yum -enablerepo=mysql80-community install mysql*8.0. Yum -enablerepo=mysql80-community install mysql*8.0.20* To install MySQL 8 of particular minor version, let’s say 8.0.20, we can execute the following command.sed -i 's/enabled=1/enabled=0/' /etc//mysql-community.repo It is to disable repos for all versions of MySQL. The below command will enable the yum repository required for the installation of MySQL rpm -Uvh All the following steps are tested in CentOS 7 and it requires sudo privileges. So, in this blog post, we will look at how to install a specific version of MySQL using yum. But it is quite tough at times because of its dependencies or conflicts with any other older version packages. Definitely, we can install other versions of MySQL using RPM files. Following the documentation steps resulted in installation of the same. At the time of writing this blog, the latest release is MySQL 8.0.22. Compatibility with opensource tools ( Eg, Xtrabackup compatibility )īut following the instructions from MySQL Documentation for installation using yum always leads to the installation of the latest version released.To configure Disaster Recovery(DR)/UAT Setup.To simulate an Production Issue on similar kind of environment.

And of course, it is not possible to use package managers in environments where the internet is not allowed, but this is a different case.Īt some point, we need to install exactly specific version of MySQL for the following cases But most of the Engineers always prefer default package managers (yum for RPM-Based distributions and apt for DPKG-Based distributions) for its ease of use and it can resolve all dependencies on its own. We have many ways to install MySQL on linux machines such as source, binary and so on.
