安装 MySQL
查看系统版本(输出结果会看到 CentOS Linux 7 (Core) )
cat /etc/os-release
获取 mysql yum repository 链接:https://dev.mysql.com/downloads/repo/yum/
cd /usr/local/src/
wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
安装源:
yum -y install mysql80-community-release-el7-3.noarch.rpm
以下为检测安装源及输出信息:
yum repolist enabled | grep "mysql.*-comm