wget https://dev.mysql.com/get/mysql80-community-release-el6-5.noarch.rpm
yum install mysql80-community-release-el6-5.noarch.rpm
yum-config-manager –disable mysql57-community
yum-config-manager –enable mysql80-community
sudo yum module disable mysql
sudo yum install mysql-community-server
systemctl start mysqld
systemctl status mysqld
sudo grep ‘temporary password’ /var/log/mysqld.log
mysql -uroot -p
ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘MyNewPass4!’;
Sursa: https://dev.mysql.com/doc/mysql-installation-excerpt/8.0/en/linux-installation-yum-repo.html