在Ubuntu或Debian系统的服务器上卸载MySQL的方法
网络编程 2021-07-05 15:28www.168986.cn编程入门
这篇文章主要介绍了在Ubuntu或Debian系统的服务器上卸载MySQL的方法,适用于Debian系的Linux系统,需要的朋友可以参考下
对于有的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-mon - MySQL database mon files(mysql数据库命令文件)
那么如何怎样在ubuntu\Debian上卸载mysql?
只需要使用 apt-get 命令 即可,如狼蚁网站SEO优化的命令,卸载 ubuntu \ Debian 中的 mysql server 和 mysql client
sudo apt-get --purge remove mysql-client mysql-server mysql-mon 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-mon 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 s/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-mon ... Purging configuration files for mysql-mon ... dpkg: warning: while removing mysql-mon, 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 表示强制删除
编程语言
- 宿迁百度关键词排名指南:实现精准营销的关键
- 四川SEO优化怎么做网络推广
- 立昂技术备案老域名收购:如何为您的业务赋能
- 安徽百度关键词seo贵不贵,一般需要多少钱
- 吉林百度快照排名怎么做电话营销
- 多伦新手做SEO怎么做
- 甘肃优化关键词排名推广怎么做论坛营销
- 沙雅SEO网站推广:提升您的在线可见性
- 四川SEO优化如何提升销售额和销售量
- 聂荣网站排名优化:提升网站可见性的全方位指
- 涞水SEO:提升地方企业在线可见性的策略
- 辽宁百度seo排名怎样做网站排名
- 临湘哪有关键词排名优化:提升网站可见度的关
- 黑龙江百度网站优化有没有优惠
- 凉城优化关键词排名推广:提升您的网络可见性
- 萝北整站优化:提升您网站流量和排名的全面指