赞
踩
首先从官网下载mysql数据库,MySQL :: Download MySQL Community Server,可以先解压后然后通过xshell上传到服务器/home/njcc/Downloads/mysql-5.7.37-1.el7.x86_64.rpm-bundle
卸载系统自带的mariadb,过程中选择y,删除后cd到上传的mysql包下面按照顺序进行安装!
- rpm -qa|grep mariadb //查看系统有没有mariadb
- yum remove mysql-libs //删除
-
安装过程中可能出现的问题:
1.缺少libaio yum install libaio
2.缺少net-tools yum install net-tools
3.缺少numactl yum install numactl
- rpm -ivh mysql-community-common-5.7.37-1.el7.x86_64.rpm
- rpm -ivh mysql-community-libs-5.7.37-1.el7.x86
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。