国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 數(shù)據(jù)庫(kù) > MySQL > 正文

在Ubuntu或Debian系統(tǒng)的服務(wù)器上卸載MySQL的方法

2019-11-02 13:51:21
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

對(duì)于有的vps,系統(tǒng)默認(rèn)安裝了mysql。我們需要從我們的服務(wù)器、vps上卸載(移除)默認(rèn)的mysql。那么如何(怎樣)在ubuntu/Debian上卸載mysql?

通常情況下,下列mysql軟件包會(huì)被安裝到 Debian 、Ubuntu中:

mysql-client - The latest version of MySQL database client(最新版的mysql數(shù)據(jù)庫(kù)客戶端). mysql-server - The latest version of MySQL database server.(最新版的mysql數(shù)據(jù)庫(kù)服務(wù)端) mysql-common - MySQL database common files(mysql數(shù)據(jù)庫(kù)命令文件)

那么如何怎樣在ubuntu/Debian上卸載mysql?
只需要使用 apt-get 命令 即可,如下面的命令,同時(shí)卸載 ubuntu / Debian 中的 mysql server 和 mysql client :

sudo apt-get --purge remove mysql-client mysql-server mysql-commonsudo apt-get autoremove

解釋: --purge 移除所給的軟件包和配置文件

remove 表示卸載軟件包

autoremove 表示自動(dòng)卸載軟件包,以及與該軟件包的依賴(軟件包)

輸入如下(注意軟件包名字):

Reading package lists... DoneBuilding dependency treeReading state information... DoneThe following packages were automatically installed and are no longer required: linux-headers-3.2.0-31-virtual linux-headers-3.2.0-31Use '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/waitingPurging 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 同時(shí)刪除該目錄下的所有子目錄。 -f 表示強(qiáng)制刪除

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 昔阳县| 福海县| 黔东| 阿荣旗| 辉南县| 南木林县| 左贡县| 东乌| 垫江县| 盘锦市| 沧源| 新安县| 广南县| 华容县| 抚顺市| 祥云县| 杭锦后旗| 琼结县| 杨浦区| 顺义区| 五莲县| 武宁县| 乡城县| 鄂托克前旗| 年辖:市辖区| 靖远县| 桑植县| 阜南县| 枣阳市| 弋阳县| 清苑县| 铜山县| 眉山市| 兴隆县| 长宁县| 师宗县| 宁陵县| 黎平县| 屏边| 凤山市| 临湘市|