To install MySQL 5.7, you should enable MySQL 5.7 community release yum repository on your system. |
yum localinstall https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm |
yum install mysql-community-server |
service mysqld start |
grep 'A temporary password' /var/log/mysqld.log | tail -1 |
Then you will be able to see its result like below:
2020-04-20T01:50:07.931468Z 1 [Note] A temporary password is generated for root@localhost: #l+wu>PMv7vJ |
/usr/bin/mysql_secure_installation |
Note you can use the temporary password acquired at STEP 4.