`
gaojingsong
  • 浏览: 1200925 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
文章分类
社区版块
存档分类
最新评论

【Linux之Mysql的卸载】

阅读更多

[root@localhost ~]# cd /opt/

[root@localhost opt]# rpm -qa mysql

mysql-5.0.45-7.1AXS3

mysql-5.0.45-7.1AXS3

[root@localhost opt]# rpm -e mysql-5.0.45-7.1AXS3

error: "mysql-5.0.45-7.1AXS3" specifies multiple packages

[root@localhost opt]# rpm -e mysql*

error: package mysql* is not installed

[root@localhost opt]# whereis mysql

mysql: /usr/bin/mysql /usr/lib/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz

[root@localhost opt]# whereis mysql

mysql: /usr/bin/mysql /usr/lib/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz

[root@localhost opt]# rpm -e mysql-5.0.45-7.1AXS3

error: "mysql-5.0.45-7.1AXS3" specifies multiple packages

[root@localhost opt]# rpm -e mysql-5.0.45-7.1AXS3  --nodeps

error: "mysql-5.0.45-7.1AXS3" specifies multiple packages



 

[root@localhost opt]# rpm -e mysql-5.0.45-7.1AXS3  --allmatches 

error: Failed dependencies:

        libmysqlclient.so.15()(64bit) is needed by (installed) php-mysql-5.1.6-23.2AXS3.x86_64

        libmysqlclient.so.15()(64bit) is needed by (installed) perl-DBD-MySQL-3.0007-2AXS3.x86_64

        libmysqlclient.so.15()(64bit) is needed by (installed) cyrus-sasl-sql-2.1.22-4.x86_64

        libmysqlclient.so.15()(64bit) is needed by (installed) mysql-connector-odbc-3.51.12-2.2.x86_64

        libmysqlclient.so.15()(64bit) is needed by (installed) mysql-server-5.0.45-7.1AXS3.x86_64

        libmysqlclient.so.15()(64bit) is needed by (installed) libdbi-dbd-mysql-0.8.1a-1.2.2.x86_64

        libmysqlclient.so.15()(64bit) is needed by (installed) qt-MySQL-3.3.6-23.1AXS3.x86_64

        libmysqlclient.so.15()(64bit) is needed by (installed) postfix-2.3.3-2.9AXS3.x86_64

        libmysqlclient.so.15()(64bit) is needed by (installed) mod_auth_mysql-3.0.0-3.2AXS3.x86_64

        libmysqlclient.so.15()(64bit) is needed by (installed) dovecot-1.0.7-7.1AXS3.x86_64

        libmysqlclient.so.15()(64bit) is needed by (installed) mysql-devel-5.0.45-7.1AXS3.x86_64

        libmysqlclient.so.15()(64bit) is needed by (installed) zabbix-proxy-mysql-1.6.4-3AXS3.x86_64

        libmysqlclient.so.15()(64bit) is needed by (installed) zabbix-server-mysql-1.6.4-3AXS3.x86_64

        libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by (installed) php-mysql-5.1.6-23.2AXS3.x86_64

        libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by (installed) perl-DBD-MySQL-3.0007-2AXS3.x86_64

        libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by (installed) cyrus-sasl-sql-2.1.22-4.x86_64

        libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by (installed) mysql-connector-odbc-3.51.12-2.2.x86_64

        libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by (installed) mysql-server-5.0.45-7.1AXS3.x86_64

        libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by (installed) libdbi-dbd-mysql-0.8.1a-1.2.2.x86_64

        libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by (installed) qt-MySQL-3.3.6-23.1AXS3.x86_64

        libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by (installed) postfix-2.3.3-2.9AXS3.x86_64

        libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by (installed) mod_auth_mysql-3.0.0-3.2AXS3.x86_64

        libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by (installed) dovecot-1.0.7-7.1AXS3.x86_64

        libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by (installed) zabbix-proxy-mysql-1.6.4-3AXS3.x86_64

        libmysqlclient.so.15(libmysqlclient_15)(64bit) is needed by (installed) zabbix-server-mysql-1.6.4-3AXS3.x86_64

        libmysqlclient_r.so.15()(64bit) is needed by (installed) mysql-connector-odbc-3.51.12-2.2.x86_64

        libmysqlclient_r.so.15()(64bit) is needed by (installed) mysql-server-5.0.45-7.1AXS3.x86_64

        libmysqlclient_r.so.15()(64bit) is needed by (installed) MySQL-python-1.2.1-1.x86_64

        libmysqlclient_r.so.15()(64bit) is needed by (installed) mysql-devel-5.0.45-7.1AXS3.x86_64

        libmysqlclient_r.so.15()(64bit) is needed by (installed) freeradius-mysql-1.1.3-1.4AXS3.x86_64

        libmysqlclient_r.so.15(libmysqlclient_15)(64bit) is needed by (installed) mysql-connector-odbc-3.51.12-2.2.x86_64

        libmysqlclient_r.so.15(libmysqlclient_15)(64bit) is needed by (installed) mysql-server-5.0.45-7.1AXS3.x86_64

        libmysqlclient_r.so.15(libmysqlclient_15)(64bit) is needed by (installed) MySQL-python-1.2.1-1.x86_64

        libmysqlclient_r.so.15(libmysqlclient_15)(64bit) is needed by (installed) freeradius-mysql-1.1.3-1.4AXS3.x86_64

        mysql = 5.0.45-7.1AXS3 is needed by (installed) mysql-server-5.0.45-7.1AXS3.x86_64

        mysql is needed by (installed) MySQL-python-1.2.1-1.x86_64

        mysql is needed by (installed) libdbi-dbd-mysql-0.8.1a-1.2.2.x86_64

        mysql = 5.0.45-7.1AXS3 is needed by (installed) mysql-bench-5.0.45-7.1AXS3.x86_64

        mysql is needed by (installed) postfix-2.3.3-2.9AXS3.x86_64

        mysql = 5.0.45-7.1AXS3 is needed by (installed) mysql-devel-5.0.45-7.1AXS3.x86_64

        mysql = 5.0.45-7.1AXS3 is needed by (installed) mysql-devel-5.0.45-7.1AXS3.i386

        mysql is needed by (installed) freeradius-mysql-1.1.3-1.4AXS3.x86_64

        libmysqlclient.so.15 is needed by (installed) cyrus-sasl-sql-2.1.22-4.i386

        libmysqlclient.so.15 is needed by (installed) mysql-devel-5.0.45-7.1AXS3.i386

        libmysqlclient.so.15(libmysqlclient_15) is needed by (installed) cyrus-sasl-sql-2.1.22-4.i386

        libmysqlclient_r.so.15 is needed by (installed) mysql-devel-5.0.45-7.1AXS3.i386

 

提示出现了multiple packages

解决方法是:

rpm -e --allmatches --nodeps

[root@localhost opt]# rpm -e mysql-5.0.45-7.1AXS3  --allmatches  --nodeps

[root@localhost opt]# 

[root@localhost opt]# rpm -e mysql-5.0.45-7.1AXS3  --allmatches  --nodeps

[root@localhost opt]# whereis mysql

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

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

[root@localhost opt]# rm -rf  /usr/include/mysql

[root@localhost opt]# rm -rf  /usr/share/mysql

[root@localhost opt]# 



 

  • 大小: 102.1 KB
  • 大小: 97.3 KB
0
1
分享到:
评论

相关推荐

    linux下彻底卸载mysql

    Linux 下彻底卸载 MySQL Linux 操作系统下彻底卸载 MySQL 是一个相对复杂的过程,需要逐步完成多个步骤来确保 MySQL 被完全卸载。本文将指导您如何彻底卸载 Linux 下的 MySQL。 步骤 1:查找以前是否装有 MySQL ...

    linux下如何彻底卸载RPM或yum安装的mysql_linux的yum命令

    以下是如何在Linux下彻底卸载由RPM或yum安装的MySQL的详细步骤: 1. **停止MySQL服务**: 首先,确保MySQL服务已经停止,以防止在卸载过程中发生任何问题。你可以使用以下命令来停止服务: ``` sudo systemctl ...

    Linux下MYSQL安装与卸载

    Linux 下 MYSQL 安装与卸载 Linux 系统下,MYSQL 是一种非常流行的关系数据库管理系统。它能够提供高效、可靠的数据存储和管理服务。然而,在 Linux 系统下安装和卸载 MYSQL 却是一件复杂的事情。下面我们将详细...

    linux下mysql的安装卸载

    linux下mysql的安装卸载;卸载mysql;安装服务端;安装服务端

    MYSQL 卸载重装.doc

    以下是根据提供的描述和标签详细说明的MySQL卸载和重装步骤: 1. **停止MySQL服务**: 在开始菜单中,选择"所有应用",然后找到"Windows管理工具",点击"服务"。在服务列表中,查找名为MySQL的服务,将其停止。...

    \linux下 mysql的安装和卸载

    本文将详细介绍如何在Linux环境下安装和卸载MySQL,包括二进制版本的处理方法。 **一、卸载已存在的MySQL** 1. **检查已安装的MySQL版本**: 使用`rpm -qa | grep mysql`或`rpm -qa | grep MySQL`命令,查看系统...

    MySQL卸载-Linux

    ### MySQL在Linux下的卸载步骤详解 #### 一、引言 MySQL是当前最流行的开源关系型数据库管理系统之一,广泛应用于各种应用场景下。在Linux环境下,由于其灵活的配置选项和丰富的管理工具,使得MySQL成为了许多...

    Linux下MySQL安装、卸载及相关操作

    本文将详细讲解Linux下MySQL的安装、卸载以及相关操作,旨在帮助用户更好地理解和掌握这一核心技能。 **一、安装MySQL** 1. **使用软件包管理器安装** 对于基于RPM的系统(如CentOS、Fedora),可以使用`yum`或`...

    Linux卸载MySQL.pdf

    在Linux系统中,卸载MySQL是一项需要注意操作顺序和细节的任务,因为MySQL数据库通常包含许多依赖和服务,不正确地卸载可能会导致系统不稳定。以下是一份详细的Linux卸载MySQL的步骤指南: 1. **检查MySQL安装状态*...

    linux 怎么完全卸载mysql数据库

    a)查看系统中是否以rpm包安装...  卸载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

    Linux下彻底卸载mysql详解

    在Linux系统中,彻底卸载MySQL数据库是一个涉及多个步骤的过程,因为MySQL可能在系统中留下配置文件、数据存储目录和库文件等残留。以下是一个详尽的指南,旨在确保完整且安全地卸载MySQL。 首先,你需要确定系统中...

    Linux下卸载MySQL8.0版本的操作方法

    在Linux系统中,卸载MySQL 8.0版本是一个涉及多步骤的过程,因为MySQL通常会安装一系列相关的组件和依赖。以下是详细的卸载步骤和注意事项: 1. **关闭MySQL服务** 在开始卸载前,首先确保MySQL服务已经停止运行,...

    linux下mysql的安装卸载和qt-x11的mysql驱动编译

    linux下mysql的安装卸载和qt-x11的mysql驱动编译

    卸载redhat6.3自带的mysql 绝对成功

    ### 卸载RedHat 6.3 自带的MySQL:绝对成功 #### 概述 在Linux环境下,尤其是对于RedHat系列的操作系统来说,管理软件包通常依赖于RPM(Red Hat Package Manager)工具。当需要卸载一个不再使用的数据库如MySQL时...

    Mysql的卸载 Mysql完全卸载 强力卸载mysql

    MySQL是世界上最流行的关系型数据库管理系统之一,用于存储和管理数据。在Linux系统中,MySQL通常通过两种方式进行安装:yum包管理器或者源码编译安装。当需要卸载MySQL时,确保完全移除所有相关组件和配置文件至关...

    Linux下mysql5.7的彻底卸载.md

    删除已经安装的mysql

Global site tag (gtag.js) - Google Analytics