zoukankan      html  css  js  c++  java
  • linux 完全卸载mysql数据库

    a)查看系统中是否以rpm包安装的mysql

    [root@linux ~]# rpm -qa | grep -i mysql 

    MySQL-server-5.1.49-1.glibc23 

    MySQL-client-5.1.49-1.glibc23 

    卸载MySQL-server-5.1.49-1.glibc23和MySQL-client-5.1.49-1.glibc23

    [root@linux ~]# rpm -e MySQL-client-5.1.49-1.glibc23 

    [root@linux ~]# rpm -e MySQL-server-5.1.49-1.glibc23 



    b)查看有没有mysql服务

    [root@linux ~]# chkconfig --list | grep -i mysql 

    mysql           0:off   1:off   2:on    3:on    4:on    5:on    6:off 

    删除mysql服务

    [root@linux ~]# chkconfig --del mysql 

    c)删除分散mysql文件夹

    [root@linux ~]# whereis mysql 

    mysql: /usr/lib/mysql /usr/share/mysql 

    [root@linux lib]# rm -rf /usr/lib/mysql/ 

    [root@linux lib]# rm -rf /usr/share/mysql 

     

  • 相关阅读:
    函数参数
    字符编码
    本周内容
    int,float,str,list,dict,元组
    python 基础变量
    Python学习(小笔记一)
    🌐 网络管理
    📓 LVM相关
    📹 进程管理(二)
    🎬进程管理
  • 原文地址:https://www.cnblogs.com/hjhsysu/p/3622554.html
Copyright © 2011-2022 走看看