由于本机测试环境数据库装错了,需要卸载数据库,记录一下
yum -y remove mysql
find / -name mysql
/etc/selinux/targeted/active/modules/100/mysql
/var/lib/mysql
/var/lib/mysql/mysql
/usr/lib64/mysql
/usr/share/mysql
需要删除的内容是
/var/lib/mysql
/var/lib/mysql/mysql
/usr/lib64/mysql
还要删除配置文件/etc/my.cnf
##在正式环境切勿执行以上操作
##在正式环境切勿执行以上操作
##在正式环境切勿执行以上操作