centos7 卸载源码安装的mysql 5.7.21

1,卸载前关闭MySQL服务


关闭方式一,如果方式一不行请用方式二,

[root@liujihaoth ~]# systemctl status mysql

[root@liujihaoth ~]# systemctl stop mysql

[root@liujihaoth ~]#  systemctl status mysql

1.png


关闭方式二

2.png



2、删除老版本mysql的文件和库

[root@liujihaoth ~]# find / -name mysql

最后查找的文件和库删除掉


3.png




猜你喜欢

转载自blog.51cto.com/6290105/2133075