centos7 卸载源码安装的mysql 5.7.21
1,卸载前关闭MySQL服务
关闭方式一,如果方式一不行请用方式二,
[[email protected] ~]# systemctl status mysql
[[email protected] ~]# systemctl stop mysql
[[email protected] ~]# systemctl status mysql
关闭方式二
2、删除老版本mysql的文件和库
[[email protected] ~]# find / -name mysql
最后查找的文件和库删除掉