对于有的vps,系统默认安装了mysql。我们需要从我们的服务器、vps上卸载(移除)默认的mysql。那么如何(怎样)在ubuntu\Debian上卸载mysql?

通常情况下,下列mysql软件包会被安装到 Debian 、Ubuntu中:

mysql-client - The latest version of MySQL database client(最新版的mysql数据库客户端).

mysql-server - The latest version of MySQL database server.(最新版的mysql数据库服务端)

mysql-common - MySQL database common files(mysql数据库命令文件)

那么如何怎样在ubuntu\Debian上卸载mysql?

只需要使用 apt-get 命令 即可,如下面的命令,同时卸载 ubuntu \ Debian 中的 mysql server 和 mysql client :

sudo apt-get --purge remove mysql-client mysql-server mysql-common

sudo apt-get autoremove

解释: --purge 移除所给的软件包和配置文件

remove 表示卸载软件包

autoremove 表示自动卸载软件包,以及与该软件包的依赖(软件包)

输入如下(注意软件包名字):

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following packages were automatically installed and are no longer required:

linux-headers-3.2.0-31-virtual linux-headers-3.2.0-31

Use 'apt-get autoremove' to remove them.

The following packages will be REMOVED:

libdbd-mysql-perl* libmysqlclient18* mysql-client* mysql-client-5.5* mysql-common* mysql-server*

mysql-server-5.5*

0 upgraded, 0 newly installed, 7 to remove and 0 not upgraded.

After this operation, 67.5 MB disk space will be freed.

Do you want to continue [Y/n]? y

(Reading database ... 105097 files and directories currently installed.)

Removing mysql-server ...

Removing mysql-server-5.5 ...

mysql stop/waiting

Purging configuration files for mysql-server-5.5 ...

Removing mysql-client ...

Removing mysql-client-5.5 ...

Removing libdbd-mysql-perl ...

Removing libmysqlclient18 ...

Purging configuration files for libmysqlclient18 ...

Removing mysql-common ...

Purging configuration files for mysql-common ...

dpkg: warning: while removing mysql-common, directory '/etc/mysql' not empty so not removed.

Processing triggers for ureadahead ...

Processing triggers for man-db ...

Processing triggers for libc-bin ...

ldconfig deferred processing now taking place

删除 /etc/mysql 目录,使用如下命令:

sudo rm -rf /etc/mysql/

解释:-r 同时删除该目录下的所有子目录。 -f 表示强制删除

ubuntu服务器卸载mysql_在Ubuntu或Debian系统的服务器上卸载MySQL的方法相关推荐

  1. debian卸载php_在Ubuntu或Debian系统的服务器上卸载MySQL的方法_MySQL

    对于有的vps,系统默认安装了mysql.我们需要从我们的服务器.vps上卸载(移除)默认的mysql.那么如何(怎样)在ubuntu\Debian上卸载mysql? 通常情况下,下列mysql软件包 ...

  2. suse linux kvm安装包,在CentOS 7/Ubuntu 16.04/Debian 9/SLES 12上安装KVM的方法

    本文介绍在Linux上安装KVM的方法,涉及CentOS 7.Ubuntu 16.04.Debian 9.SUSE Linux Enterprise Server 12(SLES 12). 在Cent ...

  3. 服务器能进安全模式进不去系统,远程服务器怎么进安全模式

    远程服务器怎么进安全模式 内容精选 换一换 远程桌面协议(Remote Desktop Protocol,RDP),是微软提供的多通道的远程登录协议.本节为您介绍如何使用RDP文件远程登录Window ...

  4. xp系统更新的服务器失败是怎么回事啊,xp系统显示“服务器错误500”的两种解决方法...

    xp纯净版系统在浏览网页的时候会遇到这样或者那样的错误,比如经常遇到404错误,503错误,怎么回事呢?这些都是HTTP的状态码,不同的状态码代表不同的错误类型,有些不常用的状态码便没有详细的记载,例 ...

  5. w10更新以后DNS服务器未响应,图文详解win10系统dns服务器未响应的措施

    我们在使用电脑工作的时候,经常会遇到win10系统dns服务器未响应的问题.面对win10系统dns服务器未响应的问题,很多朋友还不知道该怎么解决.我就把总结整理的win10系统dns服务器未响应解决 ...

  6. ubuntu 无法启动mysql_解决ubuntu下安装mysql使用service 无法启动问题

    今天从ubuntu 下安装mysql代码如下 复制代码 apt-get install mysql-server 启动的时候发现 service mysql start Rather than inv ...

  7. debian系统dns服务器的配置,Debian下的DNS配置

    Rate this post 在root模式下 apt-get install bind9 安装bind9 安装完成后进入bind9配置目录 cd /etc/bind 上图是bind目录下所有dns配 ...

  8. 阿里云esc服务器和mysql_解决远程链接阿里云esc服务器的mysql数据库

    转载:http://blog.csdn.net/enjoyphp/article/details/73512477 今天配置linux下mysql数据库可以远程访问的问题,百度这方面的资料有很多,但是 ...

  9. 联想服务器重装2008,联想RD630服务器安装2008R2系统_服务器维修

    服务器型号:联想RD630服务器 系统:windowsserver2008R2系统 需求: 石家庄上门在联想RD630服务器上安装windowsserver2008R2企业版系统,用时1个小时顺利安装 ...

最新文章

  1. 网上的说TB6560存在的问题
  2. 第25节 典型应用集成技术
  3. HTML DOM Document 对象
  4. ElementUI中的el-table中实现动态添加一行、删除一行、清空所有行
  5. Ubuntu/linux 系统彻底杀死一个进程的方法
  6. matlab验证Ross随机过程(第二版)P19页的结果
  7. python爬取qq音乐评论_爬虫:QQ音乐评论
  8. iOS中 Bugly iOS 符号表手动配置详细教程 韩俊强的博客
  9. Kubernetes部署软件应用的步骤思路
  10. 用python下载ts视频
  11. matlab中fft与fftshift,在matlab中使用fft,ifft和fftshift
  12. Spring Cloud Gateway 解决跨域问题
  13. 关于iPhone5耳机一个响解决办法(部分原因)
  14. 基于改进粒子群算法的WSN节点部署优化
  15. arm linux gcc 说明书,第七篇:gcc和arm-linux-gcc常用选项
  16. python笛卡尔转换极坐标_Go 语言: 极坐标与笛卡尔坐标的互转
  17. 什么是BI ?BI 能给企业带来什么价值?
  18. 百度与谷歌搜索结果差异
  19. 金山U盘卫士V1.5 绿色版
  20. 国嵌全部必修实验手册

热门文章

  1. Vue 获取 DOM--实例,页面一打开被focus
  2. 如何把光遇android和平切换成ios,光遇安卓和ios互通教程 安卓和ios互通注意事项...
  3. 好程序员云计算培训分享云计算中微服务是什么?
  4. Java 方法(重载,递归)
  5. 八门神器java_【修改教程】Java 运算符的说明_八门神器
  6. 前端之Angular2实战:Angular2语法清单
  7. 关于手游app的开发
  8. 【蓝桥杯】右直角三角形
  9. 怎么用键盘快捷键将光标定位到浏览器地址栏
  10. 程序员百度云干货 不谢~~~~~~