1. Enable MySQL 8.0 Repository
sudo yum localinstall https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
2. Install MySQL 8.0 using Yum sudo yum -y install MySQL-community-server 3. Enable to start at boot sudo systemctl enable mysqld
sudo systemctl start mysqld
sudo systemctl status mysqld 4. Get temporary root password sudo grep 'temporary password' /var/log/mysqld.log 5. Secure MySQL installation
sudo mysql_secure_installation 6. Try to run MySQL client: mysql -u root -p
That's all folks! 6 steps only.
Fyi, I referred to https://linuxize.com/post/install-mysql-on-centos-7/ for this.