centos7 卸载mysql

[[email protected] ~]# 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
[[email protected] ~]# 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!
[[email protected] ~]# 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
[[email protected] ~]# 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!
[[email protected] ~]# 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!
[[email protected] ~]# 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!
[[email protected] ~]# rpm -qa|grep -i mysql
[[email protected] ~]# 
时间: 2024-10-29 19:10:21

centos7 卸载mysql的相关文章

CentOS7下安装Mysql失败经历--CentOS7使用yum安装和卸载Mysql过程

起因 自己租用的BandwagonVPS上安装了个CentOS7,然后开始安装各种软件,结果yum安装MySQL发现MySQL在yum源中的Mysql不对劲,于是自己百度搜索安装方法. 终于我搜到了这篇文章:http://www.mamicode.com/info-detail-503994.html,于是我就兴高采烈地安装了起来. 安装过程 我不建议这么安装,因为我经历的是一个失败的过程,最后我也卸载掉了. 下载mysql的repo源 注意这是社区版的mysql 我在/usr/local下面新

centos7彻底卸载mysql和通过yum安装mysql

彻底卸载mysql 查看是否有安装的mysql rpm -qa | grep -i mysql // 查看命令1 1 这里写图片描述 yum list install mysql* // 查看命令2 1 这里写图片描述 卸载mysql安装包 yum remove mysql mysql-server mysql-libs compat-mysql51yum remove mysql-community-releaserpm -e --nodeps mysql-community-libs-5.7

CentOS系统下安装以及卸载mysql

CentOS7的yum源中默认好像是没有mysql的.为了解决这个问题,我们要先下载mysql的repo源. 1. 下载mysql的repo源 [[email protected] `]$ wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm 2. 安装mysql-community-release-el7-5.noarch.rpm包 [[email protected] `]$sudo rpm -ivh mysq

Linux下yum方式安装mysql 以及卸载mysql

安装 1.安装rpm包 直接使用yum -y install 命令安装mysql是无法安装mysql的高级版本,需要先安装带有可用的mysql5系列社区版资源的rpm包,输入如下命令进行安装 命令:rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm 2.查看mysql可用版本 然后使用如下命令查看mysql的可用版本 命令:yum repolist enabled | grep "mysql.*-c

完整卸载MySQL数据库

1. 关掉mysql服务 右键"我的电脑",选择"管理",打开计算机管理,选择"服务" 右键MySQL服务,选择"停止" 2. 卸载mysql程序 开始菜单->控制面板->程序和功能 3. 删除计算机上的残留文件 (1) 删除 C盘->programData->mysql文件夹,programData文件夹为隐藏文件夹//这一步很重要 (2) 删除mysql的安装目录 4. 删除注册表信息 (1)打开注

软件安装——彻底卸载MySQL

如果你的电脑里装过MySQL,想再重新安装MySQL的时候可能就会因为前一版本卸载不彻底而出现错误.最常见的就是安装好后设置参数的最后一步验证时,会在Execute configurattion步骤中的第三项Start Service出错,错误提示为Could not start the service MySQL,或者是第四项apply security setting的时候出错. 彻底卸载Mysql的方法: 首先,先在服务(开始——>控制面板——>管理工具——>服务)里停掉MySQL

最干净,最便捷的卸载Mysql(表示花了很久才搜集起来的 )

1,停止Mysql服务,卸载MySQL 2,删除安装目录及数据存放目录 注: 默认安装路径:C:\Program Files\MYSQL  (不一定在C盘要看自己安装在哪个盘) 数据库文件存放目录: XP:  C:\Documents and settings\All Users\Application Data\MYSQL WIN7/WIN8:  C:\ProgramData\MYSQL  (该目录通常是隐藏的,需要选择让其显示) 3,在注册表查询mysql,全部删除(这一步很关键,安装失败主

Debian中完全卸载MySQL

之前服务器上配置测试用的服务环境,我偷懒顺手用网上现成的脚本进行安装,结果MySQL启动不了,于是我只有老老实实的重新安装MySQL Server,原本以为apt-get --purge这类命令可以很好的帮我解决这个问题,于是我通过下面的命令重新安装: 代码如下: sudo apt-get --purge remove mysql-serversudo apt-get install mysql-server 然后再一次的启动MySQL,仍然失败报错,搜索网络依旧是提示重新安装MySQL服务程序

完全卸载mysql 停止服务、卸载相关程序、删除注册表

本节主要介绍了完全卸载mysql的具体步骤包括停止服务.卸载相关程序.删除注册表等等 1. 停止服务MySQL 2. 卸载mysql相关的程序 3. 删除注册表(运行->regedit),machine->system->controlset001/controlset002/currentcontrolset->services->eventlog->applications->MySQL相关的文件 4. 删除MySQL安装目录和保存数据库数据的目录(C:\Do