环境说明
注意:此方法需要联网
系统:centos7
mysql版本:mysql-5.7.31-1.el7.x86_64.rpm-bundle.tar
准备工作
(重要)查看是否存在旧版本的Mysql和MariaDB
rpm -qa | grep -i mysql
rpm -qa | grep -i mariadb
卸载软件
rpm -e --nodeps 软件名
再查找一下mysql的残留配置文件,一并删除
#将以下查找到的文件都删除
find / -name mysql
my.cnf文件也要删除
rm -rf /etc/my.cnf
1.切换到自定义的mysql路径下
[root@VM-0-8-centos /]# cd /opt/wgsh