zoukankan      html  css  js  c++  java
  • linux卸载mysql

    1.查看是否安装了mysql

    rpm -qa | grep -i mysql

       安装了

      

     2.停止mysql服务,删除之前安装的mysql

    停止 service mysql stop
    删除
    rpm -e MySQL-server-5.5.47-1.linux2.6.x86_64
    rpm -e MySQL-client-5.5.47-1.linux2.6.x86_64

    3.查看之前老版本mysql的目录,并且删除老版本mysql的文件和库 find / -name mysql

     find / -name mysql

    查找结果:

    1 /root/mysql
    2 /root/Downloads/sqoop-1.4.6.bin__hadoop-2.0.4-alpha/src/java/org/apache/sqoop/mapreduce/mysql
    3 /root/Downloads/sqoop-1.4.6.bin__hadoop-2.0.4-alpha/src/test/org/apache/sqoop/manager/mysql
    4 /root/Downloads/apache-hive-1.2.0-bin/scripts/metastore/upgrade/mysql
    5 /usr/lib64/mysql
    6 /var/lib/mysql
    7 /var/lib/mysql/mysq

    删除对应的mysql目录:

    1 rm -rf /root/mysql
    2 rm -rf /root/Downloads/sqoop-1.4.6.bin__hadoop-2.0.4-alpha/src/java/org/apache/sqoop/mapreduce/mysql
    3 rm -rf /root/Downloads/sqoop-1.4.6.bin__hadoop-2.0.4-alpha/src/test/org/apache/sqoop/manager/mysql
    4 rm -rf /root/Downloads/apache-hive-1.2.0-bin/scripts/metastore/upgrade/mysql
    5 rm -rf /usr/lib64/mysql
    6 rm -rf /var/lib/mysql
    7 rm -rf /var/lib/mysql/mysql

    4.再次查找机器是否安装mysql

      rpm -qa | grep -i mysql

      卸载成功

     

     

  • 相关阅读:
    0626 Django模型(ORM)
    0625 Django 基础
    0530JavaScript基础2
    CentOS7.5安装cairo-dock,比mac托盘还美
    CentOS7.5安装与使用mysql-workbench
    CentOS7.6安装rime輸入法
    CentOS7.5 firefox Flash插件更新
    记一次ceph集群的严重故障
    ceph笔记(一)
    CentOS7.6打开的程序窗口居中
  • 原文地址:https://www.cnblogs.com/yezihan/p/11484723.html
Copyright © 2011-2022 走看看