Centos7安装mysql8.0
centos的yum 源中默认是没有mysql的,所以我们需要先去官网下载mysql的repo源并安装;
mysql官网下载链接:mysql repo下载地址 如下:
https://dev.mysql.com/downloads/
wget https://dev.mysql.com/get/mysql80-community-release-el7-7.noarch.rpm
安装 yum repo文件并更新 yum 缓存
rpm -ivh mysql57-community-release-el7-11.noarch.rpm