CentOS下MySQL的彻底卸载
#################CentOS7下MySQL的卸载####################
1:查看MySQL是否安装:
方式1:
- [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 :不区分大小写):
- [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
- [root@localhost usr]# rm /etc/my.cnf
如果装了mysql-devel(其他一样add command),卸载为:
- [root@Tony_ts_tian init.d]# yum remove mysql mysql-devel mysql-server mysql-libs compat-mysql51
注(例如):
mysql-libs-5.5.39-1.el6.remi.x86_64
mysql-server-5.5.39-1.el6.remi.x86_64
- [root@localhost mysql]# rpm -aq | 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 mysql]# rpm -e MySQL-server-5.6.27-1.el6.x86_64
- [root@localhost mysql]# rpm -e MySQL-client-5.6.27-1.el6.x86_64
- [root@localhost mysql]# rpm -e MySQL-devel-5.6.27-1.el6.x86_64
- [root@localhost rc.d]# cd /var/lib/
- [root@localhost lib]# rm -rf mysql/
- [root@localhost usr]# whereis mysql
- mysql: /usr/lib64/mysql
- [root@localhost usr]# rm -rf /usr/lib64/mysql
rm -rf /usr/share/mysql
卸载4:
- [root@localhost usr]# rm –rf /usr/my.cnf
- [root@localhost usr]# rm -rf /root/.mysql_sercret
- [root@localhost usr]# chkconfig --list | grep -i mysql
- [root@localhost usr]# chkconfig --del mysqld
- 此处删除看自己设置:mysql/mysqld
CentOS下MySQL的彻底卸载的更多相关文章
- CentOS 下 MySQL 5.6 基于 RPM 的下载、安装、配置
CentOS 下 MySQL 5.6 基于 RPM 的下载.安装.配置 系统: CentOS 7 x86_64 MySQL 版本: 5.6.40 安装方式: RPM 下载 下载地址 操作系统 选择 R ...
- CentOS 下 MySQL DateBasic 抢救
CentOS 下 MySQL DateBasic 抢救 强 Kill 数据库进程. 分析问题:确定报错内容 报错信息:The server quit without updating PID file ...
- CentOS下MySQL 5.7编译安装
CentOS下MySQL 5.7编译安装 文章目录 安装依赖包 下载相应源码包 添加mysql用户 预编译 编译安装 启动脚本,设置开机自启动 /etc/my.cnf,仅供参考 初始化数据库 设置 ...
- CentOS下Mysql安装教程
CentOS下Mysql安装教程 本人学习Linux时使用的是CentOs5.5版本,在该环境中,Mysql的安装方法有很多种,下面我只讲我这次成功了的方法,作为一个记录,供大家参考,同时给自己做一个 ...
- CentOS 下mysql ERROR&n…
CentOS 下mysql ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO) 描述:在操作数据库时会出 ...
- CentOS下mysql常用命令
CentOS下mysql常用命令 1.开启和关闭 1.1.开启 service mysql start 1.2.关闭 service mysql stop 1.3.重启 service mysql ...
- CentOS下MySQL的安装过程
1 查看 CentOS 自带的 mysql 输入命令: rpm -qa | grep mysql 2 将自带的MySQL卸载了 输入命令: rpm -e --nodeps mysql-libs-5.1 ...
- Centos下MySQL主从同步配置
说明:由于MySQL不同版本之间的(二进制日志)binlog格式可能会不一样, 因此最好的搭配组合是Master的MySQL版本和Slave的版本相同或者更低,Master的版本肯定不能高于Slave ...
- Centos下MySQL使用总结
转载于CentOS中文站:http://www.centoscn.com/CentOS/Intermediate/2013/0817/1334.html 一.MySQL安装 Centos下安装mysq ...
随机推荐
- ssh connection refused
执行sudo apt-get install openssh-server命令安装SSH服务
- 解决xshell乱码问题
如下图,xshell在执行命令时显示乱码 解决办法: 文件—属性—终端,将编码改成Unicode即可 参考文章 https://blog.csdn.net/yueloveme/article/deta ...
- Arachni web扫描工具
扫描工具-Arachni from:https://blog.csdn.net/zixuanfy/article/details/52818527 ./arachni_console ...
- 加密算法中涉及C/C++总结
学习网站:http://www.runoob.com/cplusplus/cpp-functions.html char在VC(c++)中占1字节(byte),8位(bit). int在VC(c++) ...
- EPANET头文件解读系列5——TYPES.H
/************************************************************************ ...
- hdu2883
题解: 网络流 用一个离散化 代码: #include<cstdio> #include<cstring> #include<algorithm> using na ...
- delphi7完全关闭一个窗体
如果一个工程中有若干个form,在程序运行中若要彻底关闭其中的一个窗体 除了点击右上角的小叉叉外,也可以在form的close事件中添加一句话 procedure TLockScreen.FormCl ...
- 高级浏览器-SRWare Iron 29.0.1600.0 版本发布
SRWare Iron是德国一安全公司srware改造的Chrome(铬)命名为铁(iron)的浏览器.于2008年9月18日首次发布. 据官方介绍,Iron浏览器砍掉了Chromium原程序中的很多 ...
- 【python】利用scipy进行层次聚类
参考博客: https://joernhees.de/blog/2015/08/26/scipy-hierarchical-clustering-and-dendrogram-tutorial/ 层次 ...
- ieee80211 phy1: Failed to select rate control algorithm
/************************************************************************ * ieee80211 phy1: Failed t ...