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

首頁 > 數據庫 > MySQL > 正文

在Ubuntu或Debian系統的服務器上卸載MySQL的方法

2024-07-24 13:07:34
字體:
來源:轉載
供稿:網友

這篇文章主要介紹了在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-common - MySQL database common files(mysql數據庫命令文件)

那么如何怎樣在ubuntu/Debian上卸載mysql?

只需要使用 apt-get 命令 即可,如下面的命令,同時卸載 ubuntu / Debian 中的 mysql server 和 mysql client :

 

 
  1. sudo apt-get --purge remove mysql-client mysql-server mysql-common 
  2. sudo apt-get autoremove 

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

remove 表示卸載軟件包

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

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

 

 
  1. Reading package lists... Done 
  2. Building dependency tree 
  3. Reading state information... Done 
  4. The following packages were automatically installed and are no longer required: 
  5. linux-headers-3.2.0-31-virtual linux-headers-3.2.0-31 
  6. Use 'apt-get autoremove' to remove them. 
  7. The following packages will be REMOVED: 
  8. libdbd-mysql-perl* libmysqlclient18* mysql-client* mysql-client-5.5* mysql-common* mysql-server* 
  9. mysql-server-5.5* 
  10. 0 upgraded, 0 newly installed, 7 to remove and 0 not upgraded. 
  11. After this operation, 67.5 MB disk space will be freed. 
  12. Do you want to continue [Y/n]? y 
  13. (Reading database ... 105097 files and directories currently installed.) 
  14. Removing mysql-server ... 
  15. Removing mysql-server-5.5 ... 
  16. mysql stop/waiting 
  17. Purging configuration files for mysql-server-5.5 ... 
  18. Removing mysql-client ... 
  19. Removing mysql-client-5.5 ... 
  20. Removing libdbd-mysql-perl ... 
  21. Removing libmysqlclient18 ... 
  22. Purging configuration files for libmysqlclient18 ... 
  23. Removing mysql-common ... 
  24. Purging configuration files for mysql-common ... 
  25. dpkg: warning: while removing mysql-common, directory '/etc/mysql' not empty so not removed. 
  26. Processing triggers for ureadahead ... 
  27. Processing triggers for man-db ... 
  28. Processing triggers for libc-bin ... 
  29. ldconfig deferred processing now taking place 

刪除 /etc/mysql 目錄,使用如下命令:

 

 
  1. sudo rm -rf /etc/mysql/ 

解釋:-r 同時刪除該目錄下的所有子目錄。 -f 表示強制刪除

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 怀来县| 霍城县| 宁海县| 陇南市| 玛曲县| 东宁县| 巫溪县| 侯马市| 汝南县| 上饶县| 贵德县| 宜兴市| 韩城市| 蛟河市| 霞浦县| 巴彦淖尔市| 永和县| 墨江| 依兰县| 益阳市| 大冶市| 化州市| 武功县| 洪江市| 峡江县| 昭觉县| 公主岭市| 伊川县| 平度市| 兴义市| 巴林左旗| 庄河市| 湄潭县| 汕头市| 孟村| 涟水县| 兴和县| 博湖县| 竹北市| 班戈县| 广汉市|