1. 安装mysql yum包
mysql yum 包官网地址:https://dev.mysql.com/downloads/repo/yum/
这里我下载的是第一个, 使用linux shell 的 wget 进行下载: wget https://repo.mysql.com//mysql80-community-release-el7-2.noarch.rpm
2. 安装软件源:
将platform-and-version-specific-package-name
替换为你下载的rpm名
sudo rpm -Uvh platform-and-version-specific-package-name.rpm
3. 安装mysql 服务端:
yum install -y mysql-community-server
4. 启动mysql ,并检查mysql服务状态
启动: