MySQL Yum Repository: An easy way to update or install MySQL products
The MySQL Yum Repository gives you a convenient and simple way to update or install MySQL’s various products using Yum.
If you are using these Linux distros, you can use the MySQL Yum Repository:
- Red Hat Enterprise Linux 7
- Oracle Linux 7
- Red Hat Enterprise Linux 6
- Oracle Linux 6
- Red Hat Enterprise Linux 5
- Oracle Linux 5
- Fedora 19
- Fedora 20
In short, you can use the MySQL Yum Repository to install Enterprise Linux 5, 6 and 8-based platforms that are running on the correct versions of Oracle Linux, CentOS and Red Hat Enterprise Linux.
You can get the latest packages including general availability MySQL 5.6, development release MySQL 5.7, and MySQL 5.5 GA for Oracle Linux and Red Hat Enterprise Linux only. You can install the client and other components using the same RPM Yum packages.
There are three scenarios in which you could use the MySQL Yum Repository. The first is for a new installation where there are absolutely no MySQL versions are installed on the system. You can also use the repository yum when you want to replace a native third-party MySQL distribution or when you want to replace your MySQL version that has been installed via a direct RPM download.Click here to read more about this article
As you can imagine, there are different sets of instructions for each scenario. For example, in a fresh install, you would need to download the appropriate release files from the MySQL Yum Repository at http://dev.mysql.com/downloads/repo/yum/. After downloading, you would need to install the said release files using the command shell> sudo rpm -Uvh (put the label of the package here).
You would need to install MySQL with Yum by using this command: shell> sudo yum install mysql-community-server.
You can now start and stop the MySQL server and secure your installation.
You can also install MySQL components and products individually.
You can upgrade your MySQL using the MySQL Yum Repository in place. What this means is that you will use MySQL Yum Repository to replace your existing MySQL versions and then have the new version use the old data files. You can do this if you already have MySQL Yum Repository in placed. You must remember, however, that by default, MySQL Yum Repository will only update to the latest version in the series. Meaning, if you are currently using a 5.6.1 installation, you will be upgraded to 5.6.x or the latest version of the 5.6 series. You will not get version 5.7.
In order to get a higher version or series, you would need to disable the sub-repository for your installed version and allow the one for the target series.
Lastly, you can replace a native MySQL distribution that has been installed by default. You would need to back up your entire database to make sure that you do not lose any data and then add MySQL Yum Repository to your system’s list of repositories. Then do a yum update to replace your native distribution.
If you need to learn more about MySQL Yum Repository, call Four Cornerstone today. We have a team of certified Oracle and MySQL experts who can help you and your business.