欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

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

 更新時間:2015年06月30日 11:37:54   投稿:goldensun  
這篇文章主要介紹了在Ubuntu或Debian系統(tǒng)的服務(wù)器上卸載MySQL的方法,適用于Debian系的Linux系統(tǒng),需要的朋友可以參考下

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

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

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

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

sudo apt-get --purge remove mysql-client mysql-server mysql-common
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-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/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-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 同時刪除該目錄下的所有子目錄。 -f 表示強制刪除

相關(guān)文章

  • MySQL source命令的使用簡介

    MySQL source命令的使用簡介

    這篇文章主要介紹了MySQL source命令的使用簡介,幫助大家更好的理解和學習使用MySQL,感興趣的朋友可以了解下
    2021-03-03
  • MySQL跨表查詢與跨表更新

    MySQL跨表查詢與跨表更新

    本文主要給大家講解的是MySQL中如何使用跨表更新的方法和示例,非常的實用,有需要的小伙伴可以查看查看
    2020-02-02
  • Mysql半同步復制原理及問題排查

    Mysql半同步復制原理及問題排查

    這篇文章主要介紹了Mysql半同步復制原理及問題排查 的相關(guān)資料,需要的朋友可以參考下
    2016-01-01
  • MySQL數(shù)據(jù)備份方法的選擇與思考

    MySQL數(shù)據(jù)備份方法的選擇與思考

    這篇文章主要介紹了MySQL數(shù)據(jù)備份方法該如何選擇,幫助大家更好的理解和學習使用MySQL,感興趣的朋友可以了解下
    2021-03-03
  • mysql主從數(shù)據(jù)庫不同步的2種解決方法

    mysql主從數(shù)據(jù)庫不同步的2種解決方法

    今天發(fā)現(xiàn)Mysql的主從數(shù)據(jù)庫沒有同步,很是疑惑,于是搜索整理了下,接下來介紹解決方法,有感興趣的朋友可以參考下
    2013-01-01
  • MySql 8.0.11-Winxp64(免安裝版)配置教程

    MySql 8.0.11-Winxp64(免安裝版)配置教程

    這篇文章主要介紹了MySql 8.0.11-Winxp64(免安裝版)配置教程,非常不錯,具有參考借鑒價值,需要的朋友參考下吧
    2018-05-05
  • MySQL觸發(fā)器自動智能化的數(shù)據(jù)維護

    MySQL觸發(fā)器自動智能化的數(shù)據(jù)維護

    這篇文章主要介紹了MySQL觸發(fā)器自動智能化的數(shù)據(jù)維護,觸發(fā)器,就是一種特殊的存儲過程。觸發(fā)器和存儲過程一樣是一個能夠完成特定功能、存儲在數(shù)據(jù)庫服務(wù)器上的SQL片段
    2022-07-07
  • MySQL創(chuàng)建定時任務(wù)實例(每天凌晨1點、每小時、每分鐘、某一時間點)

    MySQL創(chuàng)建定時任務(wù)實例(每天凌晨1點、每小時、每分鐘、某一時間點)

    在mysql中有時候要定時更新或者刪除一部分數(shù)據(jù)需要用到mysql的定時任務(wù),下面這篇文章主要給大家介紹了關(guān)于MySQL創(chuàng)建定時任務(wù)的相關(guān)資料,包括每天凌晨1點、每小時、每分鐘、某一時間點等,需要的朋友可以參考下
    2023-03-03
  • Linux下安裝mysql-5.6.4 的圖文教程

    Linux下安裝mysql-5.6.4 的圖文教程

    在開始安裝前,先說明一下mysql-5.6.4與較低的版本在安裝上的區(qū)別,從mysql-5.5起,mysql源碼安裝開始使用cmake了,因此當我們配置安裝目錄./configure --perfix=/.....的時候和以前的會有些區(qū)別,這點我們稍后會提到
    2013-06-06
  • 數(shù)據(jù)庫查詢優(yōu)化之子查詢優(yōu)化

    數(shù)據(jù)庫查詢優(yōu)化之子查詢優(yōu)化

    今天小編就為大家分享一篇關(guān)于數(shù)據(jù)庫查詢優(yōu)化之子查詢優(yōu)化,小編覺得內(nèi)容挺不錯的,現(xiàn)在分享給大家,具有很好的參考價值,需要的朋友一起跟隨小編來看看吧
    2019-01-01

最新評論