修改文件权限:
chattr -i /etc/gshadow
chattr -i /etc/shadow
chattr -i /etc/group
chattr -i /etc/passwd
卸载MySQL:
- rpm查询MySQL安装
rpm -qa | grep mysql
- rpm卸载安装
rpm -e --nodeps mysql-community-server-5.7.35-1.el7.x86_64
rpm -e --nodeps mysql-community-common-5.7.35-1.el7.x86_64
rpm -e --nodeps mysql-community-libs-5.7.35-1.el7.x86_64
rpm -e --nodeps mysql-community-client-5.7.35-1.el7.x86_64
rpm -e --nodeps mysql57-community-release-el7-8.noarch
RPM安装MySQL请参考:https://blog.csdn.net/China_hdy/article/details/94843449