Add Additional Repositories Install additional repositories Additional Repositories Using the commands below, install the Epel and PHP repositories: yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm MySQL Repository Replace MariaDB with MySQL Navigate to https://dev.mysql.com/downloads/repo/yum/ Select the correct package corresponding to the version running on the server and click download. Scroll down to 'No thanks, just start my download' and right click on the link. Click 'Copy link address.' Run the command below to install the MySQL repository. yum localinstall 'link address copied from MySQL website' Enable the correct release series Manually edit the '/etc/yum.repos.d/mysql-community.repo' file with your favorite text editor. Specify enabled=0 to disable a subrepository, or enabled=1 to enable a subrepository, see example below to enable MySQL 5.6 and disable MySQL 5.7 series. # Enable to use MySQL 5.6 & Disabled MySQL 5.7 [mysql56-community] name=MySQL 5.6 Community Serverbaseurl=http://repo.mysql.com/yum/mysql-5.6- community/el/6/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql [mysql57-community] name=MySQL 5.7 Community Serverbaseurl=http://repo.mysql.com/yum/mysql-5.7- community/el/6/$basearch/ enabled=0 gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql Note: When sub repositories for more than one release series are enabled, the latest series will be used by Yum.