Add New Repository
yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
Install MySQL 5.7
yum -y install mysql-community-server
Start MySQL and Enable Start at Boot Time
systemctl start mysqld
systemctl enable mysqld
systemctl is-enabled mysqld #check is enabled
Configure the MySQL Root Password
grep 'temporary' /var/log/mysqld.log
mysql -u root -p
#type your password
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Your_New_Password';
flush privileges;
exit;
Testing
#re-login mysql
mysql -u root -p
#type your new password
create database yo;