去MysqL官网下载最新版的5.7MysqL-5.7.19-linux-glibc2.12-x86_64.tar.gz
tar -zxvf 解压
mvMysqL-5.7.19-linux-glibc2.12-x86_64 /usr/local/MysqL/ 移动到这个目录下
cd/usr/local/MysqL/MysqL-5.7.19-linux-glibc2.12-x86_64
mkdir data 新建数据目录
groupadd MysqL
vi
wget
https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-community-server-5.7.19-1.el7.x86_64.rpm
5.7 的安装失败,怎么设置都不成功,放弃了,去看我安装5.6的吧
原文链接:https://www.f2er.com/centos/376268.html