ubuntu服务器卸载mysql_在Ubuntu或Debian系统的服务器上卸载MySQL的方法
对于有的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的方法相关推荐
- debian卸载php_在Ubuntu或Debian系统的服务器上卸载MySQL的方法_MySQL
对于有的vps,系统默认安装了mysql.我们需要从我们的服务器.vps上卸载(移除)默认的mysql.那么如何(怎样)在ubuntu\Debian上卸载mysql? 通常情况下,下列mysql软件包 ...
- 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 ...
- 服务器能进安全模式进不去系统,远程服务器怎么进安全模式
远程服务器怎么进安全模式 内容精选 换一换 远程桌面协议(Remote Desktop Protocol,RDP),是微软提供的多通道的远程登录协议.本节为您介绍如何使用RDP文件远程登录Window ...
- xp系统更新的服务器失败是怎么回事啊,xp系统显示“服务器错误500”的两种解决方法...
xp纯净版系统在浏览网页的时候会遇到这样或者那样的错误,比如经常遇到404错误,503错误,怎么回事呢?这些都是HTTP的状态码,不同的状态码代表不同的错误类型,有些不常用的状态码便没有详细的记载,例 ...
- w10更新以后DNS服务器未响应,图文详解win10系统dns服务器未响应的措施
我们在使用电脑工作的时候,经常会遇到win10系统dns服务器未响应的问题.面对win10系统dns服务器未响应的问题,很多朋友还不知道该怎么解决.我就把总结整理的win10系统dns服务器未响应解决 ...
- ubuntu 无法启动mysql_解决ubuntu下安装mysql使用service 无法启动问题
今天从ubuntu 下安装mysql代码如下 复制代码 apt-get install mysql-server 启动的时候发现 service mysql start Rather than inv ...
- debian系统dns服务器的配置,Debian下的DNS配置
Rate this post 在root模式下 apt-get install bind9 安装bind9 安装完成后进入bind9配置目录 cd /etc/bind 上图是bind目录下所有dns配 ...
- 阿里云esc服务器和mysql_解决远程链接阿里云esc服务器的mysql数据库
转载:http://blog.csdn.net/enjoyphp/article/details/73512477 今天配置linux下mysql数据库可以远程访问的问题,百度这方面的资料有很多,但是 ...
- 联想服务器重装2008,联想RD630服务器安装2008R2系统_服务器维修
服务器型号:联想RD630服务器 系统:windowsserver2008R2系统 需求: 石家庄上门在联想RD630服务器上安装windowsserver2008R2企业版系统,用时1个小时顺利安装 ...
最新文章
- 网上的说TB6560存在的问题
- 第25节 典型应用集成技术
- HTML DOM Document 对象
- ElementUI中的el-table中实现动态添加一行、删除一行、清空所有行
- Ubuntu/linux 系统彻底杀死一个进程的方法
- matlab验证Ross随机过程(第二版)P19页的结果
- python爬取qq音乐评论_爬虫:QQ音乐评论
- iOS中 Bugly iOS 符号表手动配置详细教程 韩俊强的博客
- Kubernetes部署软件应用的步骤思路
- 用python下载ts视频
- matlab中fft与fftshift,在matlab中使用fft,ifft和fftshift
- Spring Cloud Gateway 解决跨域问题
- 关于iPhone5耳机一个响解决办法(部分原因)
- 基于改进粒子群算法的WSN节点部署优化
- arm linux gcc 说明书,第七篇:gcc和arm-linux-gcc常用选项
- python笛卡尔转换极坐标_Go 语言: 极坐标与笛卡尔坐标的互转
- 什么是BI ?BI 能给企业带来什么价值?
- 百度与谷歌搜索结果差异
- 金山U盘卫士V1.5 绿色版
- 国嵌全部必修实验手册