1、配置 yum 源
rpm -i https://dev.MysqL.com/get/MysqL80-community-release-el7-1.noarch.rpm
2、安装 MysqL Server
yum install MysqL-community-{server,client,common,libs}-*
3、启动 MysqL 服务
systemctl start MysqLd
4、修改 root 密码
grep 'temporary password' /var/log/MysqLd.log
MysqL -uroot -p
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MysqL8.0';