Myslq5.7.26 版本安装教程
一、准备资源
1、装备资源文件
mysql-5.7.26-lin
ux-glibc2.12-x86_64.tar.gz
2、上传至 Linux 系统中
二、开始安装
1、卸载系统自带的 Mariadb
[root@hdp265dnsnfs ~]# rpm -qa|grep mariadb
mariadb-libs-5.5.44-2.el7.centos.x86_64
[root@hdp265dnsnfs~]#rpm -e --nodeps mariadb-libs-5.5.44-2.el7.centos.x86_64
2、删除 etc 目录下的 my.cnf 文件
[root@hdp265dnsnfs ~]# rm /etc/my.cnf
rm: cannot remove ?etc/my.cnf? No such file or directory
3、检查 mysql 是否存在
[root@hdp265dnsnfs ~]# rpm -qa | grep mysql