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

    [root@zyf ~]# rpm -qa|grep -i mysql
    mysql-community-libs-5.6.34-2.el7.x86_64
    mysql-community-server-5.6.34-2.el7.x86_64
    mysql-community-release-el7-5.noarch
    mysql-community-common-5.6.34-2.el7.x86_64
    mysql-community-client-5.6.34-2.el7.x86_64
    [root@zyf ~]# yum remove mysql
    Loaded plugins: fastestmirror
    Resolving Dependencies
    --> Running transaction check
    ---> Package mysql-community-client.x86_64 0:5.6.34-2.el7 will be erased
    --> Processing Dependency: mysql-community-client(x86-64) >= 5.6.10 for package: mysql-community-server-5.6.34-2.el7.x86_64
    --> Running transaction check
    ---> Package mysql-community-server.x86_64 0:5.6.34-2.el7 will be erased
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ============================================================================================================================================================================================================
     Package                                                 Arch                                    Version                                          Repository                                           Size
    ============================================================================================================================================================================================================
    Removing:
     mysql-community-client                                  x86_64                                  5.6.34-2.el7                                     @mysql56-community                                   89 M
    Removing for dependencies:
     mysql-community-server                                  x86_64                                  5.6.34-2.el7                                     @mysql56-community                                  249 M
    
    Transaction Summary
    ============================================================================================================================================================================================================
    Remove  1 Package (+1 Dependent package)
    
    Installed size: 337 M
    Is this ok [y/N]: y
    Downloading packages:
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Erasing    : mysql-community-server-5.6.34-2.el7.x86_64                                                                                                                                               1/2 
      Erasing    : mysql-community-client-5.6.34-2.el7.x86_64                                                                                                                                               2/2 
      Verifying  : mysql-community-server-5.6.34-2.el7.x86_64                                                                                                                                               1/2 
      Verifying  : mysql-community-client-5.6.34-2.el7.x86_64                                                                                                                                               2/2 
    
    Removed:
      mysql-community-client.x86_64 0:5.6.34-2.el7                                                                                                                                                              
    
    Dependency Removed:
      mysql-community-server.x86_64 0:5.6.34-2.el7                                                                                                                                                              
    
    Complete!
    [root@zyf ~]# rpm -qa|grep -i mysql
    mysql-community-libs-5.6.34-2.el7.x86_64
    mysql-community-release-el7-5.noarch
    mysql-community-common-5.6.34-2.el7.x86_64
    [root@zyf ~]# yum remove mysql-community-libs-5.6.34-2.el7.x86_64
    Loaded plugins: fastestmirror
    Resolving Dependencies
    --> Running transaction check
    ---> Package mysql-community-libs.x86_64 0:5.6.34-2.el7 will be erased
    --> Processing Dependency: libmysqlclient.so.18()(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
    --> Processing Dependency: libmysqlclient.so.18(libmysqlclient_18)(64bit) for package: 2:postfix-2.10.1-6.el7.x86_64
    --> Running transaction check
    ---> Package postfix.x86_64 2:2.10.1-6.el7 will be erased
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ============================================================================================================================================================================================================
     Package                                               Arch                                    Version                                            Repository                                           Size
    ============================================================================================================================================================================================================
    Removing:
     mysql-community-libs                                  x86_64                                  5.6.34-2.el7                                       @mysql56-community                                  9.2 M
    Removing for dependencies:
     postfix                                               x86_64                                  2:2.10.1-6.el7                                     @anaconda                                            12 M
    
    Transaction Summary
    ============================================================================================================================================================================================================
    Remove  1 Package (+1 Dependent package)
    
    Installed size: 21 M
    Is this ok [y/N]: y
    Downloading packages:
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Erasing    : 2:postfix-2.10.1-6.el7.x86_64                                                                                                                                                            1/2 
      Erasing    : mysql-community-libs-5.6.34-2.el7.x86_64                                                                                                                                                 2/2 
      Verifying  : 2:postfix-2.10.1-6.el7.x86_64                                                                                                                                                            1/2 
      Verifying  : mysql-community-libs-5.6.34-2.el7.x86_64                                                                                                                                                 2/2 
    
    Removed:
      mysql-community-libs.x86_64 0:5.6.34-2.el7                                                                                                                                                                
    
    Dependency Removed:
      postfix.x86_64 2:2.10.1-6.el7                                                                                                                                                                             
    
    Complete!
    [root@zyf ~]# yum remove -y mysql-community-release-el7-5.noarch
    Loaded plugins: fastestmirror
    Resolving Dependencies
    --> Running transaction check
    ---> Package mysql-community-release.noarch 0:el7-5 will be erased
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ============================================================================================================================================================================================================
     Package                                                      Arch                                        Version                                      Repository                                      Size
    ============================================================================================================================================================================================================
    Removing:
     mysql-community-release                                      noarch                                      el7-5                                        installed                                      4.3 k
    
    Transaction Summary
    ============================================================================================================================================================================================================
    Remove  1 Package
    
    Installed size: 4.3 k
    Downloading packages:
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Erasing    : mysql-community-release-el7-5.noarch                                                                                                                                                     1/1 
      Verifying  : mysql-community-release-el7-5.noarch                                                                                                                                                     1/1 
    
    Removed:
      mysql-community-release.noarch 0:el7-5                                                                                                                                                                    
    
    Complete!
    [root@zyf ~]# yum remove -y mysql-community-common-5.6.34-2.el7.x86_64
    Loaded plugins: fastestmirror
    Resolving Dependencies
    --> Running transaction check
    ---> Package mysql-community-common.x86_64 0:5.6.34-2.el7 will be erased
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ============================================================================================================================================================================================================
     Package                                                 Arch                                    Version                                          Repository                                           Size
    ============================================================================================================================================================================================================
    Removing:
     mysql-community-common                                  x86_64                                  5.6.34-2.el7                                     @mysql56-community                                  2.1 M
    
    Transaction Summary
    ============================================================================================================================================================================================================
    Remove  1 Package
    
    Installed size: 2.1 M
    Downloading packages:
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
      Erasing    : mysql-community-common-5.6.34-2.el7.x86_64                                                                                                                                               1/1 
      Verifying  : mysql-community-common-5.6.34-2.el7.x86_64                                                                                                                                               1/1 
    
    Removed:
      mysql-community-common.x86_64 0:5.6.34-2.el7                                                                                                                                                              
    
    Complete!
    [root@zyf ~]# rpm -qa|grep -i mysql
    [root@zyf ~]# 
  • 相关阅读:
    js 字符串indexOf方法封装
    js 冒泡排序
    CSS定位 position的三个属性 elative 、absolute、fixed :
    让父元素能感知浮动的子元素 #用伪元素清除浮动
    三个路由器的连接,中间路由的配置(静态路由)
    IDEA 添加tomcat出错: Error: Environment variable name is not set 我的解决方法
    通过基于AspectJ 注解的方式实现Spring AOP报 can't find referenced pointcut myPointCut 错误,我的解决方法
    C语言fopen函数打开文本文件与二进制文件的区别
    位运算的奇技淫巧 系列1
    位运算例子(以后会逐渐补充)
  • 原文地址:https://www.cnblogs.com/felixzh/p/6074454.html
Copyright © 2011-2022 走看看