ubuntu如何卸載mysql(ubuntu卸載mysql的電腦知識
導讀:電腦知識電腦知識很多人想知道ubuntu如何卸載mysql,還有些ubuntu用戶總是覺得mysql卸載的不夠干凈,今天為大家帶來的這個ubuntu卸載mysql的具體方法,就電腦技術網itokoki煤氣切換閥知識。
很多人想知道ubuntu如何卸載mysql,還有些ubuntu用戶總是覺得mysql卸載的不夠干凈,今天為大家帶來的這個ubuntu卸載mysql的具體方法,就能夠幫助這些用戶來解決這個問題。
ubuntu卸載mysql的具體方法
我們已卸載muSQL5.7為例;
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 binaries2、然后我們就來卸載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) ...聲明: 本文由我的SEOUC技術文章主頁發布于:2023-05-31 ,文章ubuntu如何卸載mysql(ubuntu卸載mysql的電腦知識主要講述電腦知識,ubuntu,ubuntu如何卸載mysql(ub網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/news_13579.html