最新活动:电脑PC端+手机端+微网站+自适应网页多模板选择-建站388元起价!!!
当前位置:主页 > 互联网资讯 > ubuntu如何卸载mysql(ubuntu卸载mysql的电脑知识

ubuntu如何卸载mysql(ubuntu卸载mysql的电脑知识

时间:2023-05-31 14:05:31 阅读: 文章分类: 互联网资讯 作者: 网站技术员

导读:电脑知识电脑知识很多人想知道ubuntu如何卸载mysql,还有些ubuntu用户总是觉得mysql卸载的不够干净,今天为大家带来的这个ubuntu卸载mysql的具体方法,就电脑技术网itokoki煤气切换阀知识。

电脑技术网itokoki煤气切换阀知识

很多人想知道ubuntu如何卸载mysql,还有些ubuntu用户总是觉得mysql卸载的不够干净,今天为大家带来的这个ubuntu卸载mysql的具体方法,就能够帮助这些用户来解决这个问题。

ubuntu卸载mysql的具体方法

我们已卸载muSQL5.7为例;

ubuntu如何卸载mysql(ubuntu卸载mysql的具体方法)

1、首先我们需要查看mysql依赖项,输入如下代码:

dpkg --list | grep mysql

以上代码输入后回车,会输出类似于如下的代码:

ii libmysqlclient-dev 5.7.34-0ubuntu0.18.04.1 amd64 MySQL database development files ii libmysqlclient20:amd64 5.7.34-0ubuntu0.18.04.1 amd64 MySQL database client library ii mysql-client-5.7 5.7.34-0ubuntu0.18.04.1 amd64 MySQL database client binaries ii mysql-client-core-5.7 5.7.34-0ubuntu0.18.04.1 amd64 MySQL database core client binaries ii mysql-common 5.8+1.0.4 all MySQL database common files, e.g. /etc/mysql/my.cnf ii mysql-server-5.7 5.7.34-0ubuntu0.18.04.1 amd64 MySQL database server binaries and system database setup ii mysql-server-core-5.7 5.7.34-0ubuntu0.18.04.1 amd64 MySQL database server binaries

2、然后我们就来卸载mysql-common,输入如下代码:

sudo apt remove mysql-common

以上代码输入后回车,会输出类似于如下的代码:

Reading package lists... Done Building dependency tree Reading state info高端网站建设rmation... Done The following packages were automatically installed and are no longer required: libaio1 libcgi-fast-perl libcgi-pm-perl libencode-locale-perl libevent-core-2.1-6 libfcgi-perl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl libio-html-perl liblwp-mediatypes-perl libtimedate-perl liburi-perl mysql-client-core-5.7 mysql-server-core-5.7 Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: libmysqlclient-dev libmysqlclient20 mysql-client-5.7 mysql-common mysql-server-5.7 0 upgraded, 0 newly installed, 5 to remove and 64 not upgraded. After this operation, 89.0 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 110572 files and directories currently installed.) Removing libmysqlclient-dev (5.7.34-0ubuntu0.18.04.1) ... Removing libmysqlclient20:amd64 (5.7.34-0ubuntu0.18.04.1) ... Removing mysql-server-5.7 (5.7.34-0ubuntu0.18.04.1) ... update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode Removing mysql-client-5.7 (5.7.34-0ubuntu0.18.04.1) ... Removing mysql-common (5.8+1.0.4) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Processing triggers for libc-bin (2.27-3ubuntu1.2) ...

关键词标签: 电脑知识 Ubuntu

声明: 本文由我的SEOUC技术文章主页发布于:2023-05-31 ,文章ubuntu如何卸载mysql(ubuntu卸载mysql的电脑知识主要讲述电脑知识,ubuntu,ubuntu如何卸载mysql(ub网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/news_13579.html

我的IDC 网站建设技术SEOUC.COM
专注网站建设,SEO优化,小程序设计制作搭建开发定制网站等,数千家网站定制开发案例,网站推广技术服务。
  • 5000+合作客服
  • 8年从业经验
  • 150+覆盖行业
  • 最新热门源码技术文章