install mysql 8 for centos 7 code example
Example 1: mysql 5.7 in centos 7
$ wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
Example 2: installing mysql on centos 7
sudo yum localinstall https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm