一、rpm安装
1、在线安装
在官网下载所需版本的包,传到linux中
我下载的是这个:https://repo.mysql.com//mysql80-community-release-el6-4.noarch.rpm
下载:
# yum localinstall mysql80-community-release-el6-4.noarch.rpm
# yum install mysql-community-server --skip-broken
不加--skip-broken会报错
解决方法也写了
2、离线安装
在MySQL :: Begin Your Downloadhttps://dev.mysql.com/downloads/file/?id=507407官网中找到DOWNLOADS---->MySQL Community (GPL) Downloads »
https://dev.mysql.com/downloads/--->
---->Looking for previous GA versions?https://dev.mysql.com/downloads/mysql/5.7.html---->