Visit https://dev.mysql.com/downloads/repo/yum, get right version. eg: mysql57-community-release-el7-11.noarch.rpm
wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
sudo rpm -ivh mysql57-community-release-el7-11.noarch.rpm
sudo yum install mysql-server
sudo systemctl start mysqld
sudo systemctl status mysqld
sudo grep 'temporary password' /var/log/mysqld.log
get default root passwordsudo mysql_secure_installation
use default password and change password- >Enter a new 12-character password that contains uppercase letter, lowercase letter, number and special character.