- Download RPM file
wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
- Install MYSQL server
sudo yum install mysql-community-server
- Start the MYSQL service
sudo service mysqld start
- Check the status of server
sudo service mysqld
- Get the temporary password setup by the MYSQL server
sudo grep 'temporary password' /var/log/mysqld.log
- Login to MYSQL
mysql -uroot -p
7.Change the password
ALTER USER 'root'@'localhost’ IDENTIFIED WITH mysql_native_password BY ’NewPassword’;
- For password based authentication you need identified with mysql_native_password & for applying changes privileges need to be flushed.
flush privileges;
Enjoy :)