卸载mysql软件
[root@host53 ~]# vim cxx.sh
[root@host53 ~]# bash cxx.sh
warning: /etc/my.cnf saved as /etc/my.cnf.rpmsave
[root@host53 ~]# cat cxx.sh
rpm -e --nodeps mysql-community-common-5.7.17-1.el7.x86_64 \
mysql-community-devel-5.7.17-1.el7.x86_64 \
mysql-community-test-5.7.17-1.el7.x86_64 \
mysql-community-minimal-debuginfo-5.7.17-1.el7.x86_64 \
mysql-community-libs-5.7.17-1.el7.x86_64 \
mysql-community-server-5.7.17-1.el7.x86_64 \
mysql-community-embedded-5.7.17-1.el7.x86_64 \
mysql-community-embedded-devel-5.7.17-1.el7.x86_64 \
mysql-community-embedded-compat-5.7.17-1.el7.x86_64 \
mysql-community-client-5.7.17-1.el7.x86_64 \
mysql-community-libs-compat-5.7.17-1.el7.x86_64