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';
原文地址:http://blog.51cto.com/linux10000/2124653
时间: 2024-10-09 05:24:37