In this article, we will see How to Install MySQL 8 on CentOS 7.
MySQL 8 Installation on CentOS step by step:
Following are the commands used to install MySQL on CentOS:
1. wget https://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm
2. yum install mysql80-community-release-el7-3.noarch.rpm
3. yum repolist enabled | grep “mysql.*-community.*”
4. yum install mysql-community-server
5. service mysqld start
6. service mysqld status
7. grep ‘temporary password’ /var/log/mysqld.log
8. mysql -u root -p
9. alter user root@localhost identified by ‘John@321’;