1、在/usr/目录下,新建mysql目录,进入到/usr/mysql目录下,下载安装文件mysql57-community-release-el7-8.noarch.rpm
cd /usr/mysql
wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/dc7d2d57283ff3606d13cd16fc30a72c.png#pic_center)
2、执行安装
yum localinstall mysql57-community-release-el7-8.noarch.rpm
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/d7904cb3beb8a104cea8d2768122e744.png#pic_center)
检查安装是否成功
yum repolist enabled | grep<