一、#################CentOS7下MySQL的卸载####################
1:查看MySQL是否安装:
方式1:
[plain] view plain copy
- [root@localhost usr]# yum list installed mysql*
- Loaded plugins: fastestmirror
- Loading mirror speeds from cached hostfile
- * base: mirrors.yun-idc.com
- * extras: mirror.neu.edu.cn
- * updates: mirrors.yun-idc.com
- Installed Packages
- MySQL-client.x86_64 5.6.27-1.el6 installed
- MySQL-devel.x86_64 5.6.27-1.el6 installed
- MySQL-server.x86_64 5.6.27-1.el6 installed
- [root@localhost usr]#
方式2( -i :不区分大小写):
[plain] view plain copy( 一般用这个就行了)
- [root@localhost usr]# rpm -qa | grep -i mysql
- MySQL-server-5.6.27-1.el6.x86_64
- MySQL-client-5.6.27-1.el6.x86_64
- MySQL-devel-5.6.27-1.el6.x86_64
- [root@localhost usr]#
- [root@localhost usr]# rm -rf /var/lib/mysql