To install MySQL 5.7, you should |
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.