yum install mysql 5.7 redhat code example
Example: mysql 5.7 in centos 7
$ wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
$ wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm