How To Install MySQL on CentOS 7

In a web browser, visit:

https://dev.mysql.com/downloads/repo/yum/

 

Locate the desired version, and replace it in the below command as an example

wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm

 

install the RPM

rpm -ivh mysql57-community-release-el7-9.noarch.rpm

 

now u can use yum to install mysql server

yum install mysql-server

 

enjoy 🙂

 

shenno