1. 程式人生 > >阿里雲(三) Ubuntu系統下mysql解除安裝

阿里雲(三) Ubuntu系統下mysql解除安裝

一、ssh登入阿里雲伺服器,檢視mysql的安裝狀態。

[email protected]:~# sudo netstat -tap | grep mysql

tcp        0      0 localhost:mysql         *:*                     LISTEN      24688/mysqld  

以上表示,當前系統已經安裝了mysql。

二、因為種種原因,我需要解除安裝mysql。

1、第一步: sudo apt-get remove mysql-server.

[email protected]:~# sudo apt-get remove mysql-server

Reading package lists... Done

Building dependency tree       

Reading state information... Done

The following packages were automatically installed and are no longer required:

  libcgi-fast-perl libcgi-pm-perl libencode-locale-perl libevent-core-2.0-5 libfcgi-perl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl

  libhttp-message-perl libio-html-perl liblwp-mediatypes-perl liburi-perl mysql-server-5.7 mysql-server-core-5.7

Use 'sudo apt autoremove' to remove them.

The following packages will be REMOVED:

  mysql-server

0 upgraded, 0 newly installed, 1 to remove and 48 not upgraded.

After this operation, 175 kB disk space will be freed.

Do you want to continue? [Y/n] y

(Reading database ... 100504 files and directories currently installed.)

Removing mysql-server (5.7.17-0ubuntu0.16.04.2) ...

2、第二步:sudo apt-get autoremove mysql-server.

[email protected]:~# sudo apt-get autoremove mysql-server

Reading package lists... Done

Building dependency tree       

Reading state information... Done

Package 'mysql-server' is not installed, so not removed

The following packages will be REMOVED:

  libcgi-fast-perl libcgi-pm-perl libencode-locale-perl libevent-core-2.0-5 libfcgi-perl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl

  libhttp-message-perl libio-html-perl liblwp-mediatypes-perl liburi-perl mysql-server-5.7 mysql-server-core-5.7

0 upgraded, 0 newly installed, 15 to remove and 48 not upgraded.

After this operation, 96.3 MB disk space will be freed.

Do you want to continue? [Y/n] y

(Reading database ... 100500 files and directories currently installed.)

Removing libcgi-fast-perl (1:2.10-1) ...

Removing libhtml-template-perl (2.95-2) ...

Removing libcgi-pm-perl (4.26-1) ...

Removing libhttp-message-perl (6.11-1) ...

Removing libencode-locale-perl (1.05-1) ...

Removing mysql-server-5.7 (5.7.17-0ubuntu0.16.04.2) ...

update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode

Removing libevent-core-2.0-5:amd64 (2.0.21-stable-2ubuntu0.16.04.1) ...

Removing libfcgi-perl (0.77-1build1) ...

Removing libhtml-parser-perl (3.72-1) ...

Removing libhtml-tagset-perl (3.20-2) ...

Removing libhttp-date-perl (6.02-1) ...

Removing libio-html-perl (1.001-1) ...

Removing liblwp-mediatypes-perl (6.02-1) ...

Removing liburi-perl (1.71-1) ...

Removing mysql-server-core-5.7 (5.7.17-0ubuntu0.16.04.2) ...

Processing triggers for man-db (2.7.5-1) ...

Processing triggers for libc-bin (2.23-0ubuntu5) ...

3、第三步:sudo apt-get remove mysql-common.

[email protected]:~# sudo apt-get remove mysql-common

Reading package lists... Done

Building dependency tree       

Reading state information... Done

The following package was automatically installed and is no longer required:

  mysql-client-core-5.7

Use 'sudo apt autoremove' to remove it.

The following packages will be REMOVED:

  mysql-client mysql-client-5.7 mysql-common

0 upgraded, 0 newly installed, 3 to remove and 48 not upgraded.

After this operation, 34.4 MB disk space will be freed.

Do you want to continue? [Y/n] y

(Reading database ... 100103 files and directories currently installed.)

Removing mysql-client (5.7.17-0ubuntu0.16.04.2) ...

Removing mysql-client-5.7 (5.7.17-0ubuntu0.16.04.2) ...

Removing mysql-common (5.7.17-0ubuntu0.16.04.2) ...

Processing triggers for man-db (2.7.5-1) ...


4、殘留資料移除。

[email protected]:~# dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P 

(Reading database ... 100056 files and directories currently installed.)

Removing mysql-common (5.7.17-0ubuntu0.16.04.2) ...

Purging configuration files for mysql-common (5.7.17-0ubuntu0.16.04.2) ...

Removing mysql-server-5.7 (5.7.17-0ubuntu0.16.04.2) ...

Purging configuration files for mysql-server-5.7 (5.7.17-0ubuntu0.16.04.2) ...


5、最後一步。

[email protected]:~# sudo dpkg -i mysql-apt-config_0.7.2-1_all.deb                                                                                                    

dpkg: error processing archive mysql-apt-config_0.7.2-1_all.deb (--install):

 cannot access archive: No such file or directory

Errors were encountered while processing:

 mysql-apt-config_0.7.2-1_all.deb

[email protected]:~# sudo dpkg -i mysql-apt-config_0.7.2-1_all.deb

dpkg: error processing archive mysql-apt-config_0.7.2-1_all.deb (--install):

 cannot access archive: No such file or directory

Errors were encountered while processing:

 mysql-apt-config_0.7.2-1_all.deb

[email protected]:~# sudo apt-get update

Hit:1 http://mirrors.cloud.aliyuncs.com/ubuntu xenial InRelease

Hit:2 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-security InRelease

Hit:3 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-updates InRelease

Hit:4 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-proposed InRelease

Hit:5 http://mirrors.cloud.aliyuncs.com/ubuntu xenial-backports InRelease

Reading package lists... Done 

三、解除安裝mysql完成。

[email protected]:~# sudo netstat -tap | grep mysql 

[email protected]:~# 

相關推薦

阿里 Ubuntu系統mysql解除安裝

一、ssh登入阿里雲伺服器,檢視mysql的安裝狀態。 [email protected]:~# sudo netstat -tap | grep mysql tcp       

Linux驅動開發——模組初始化和解除安裝函式

        在(一)中,主要講述了模組的基本組成,載入,解除安裝和檢視工具的使用。本篇中,主要講述module_init()和module_exit()這兩個函式的使用。          在(一)中給的原始碼檔案中,模組初始化和解除安裝函式為:init_module()

Ubuntu環境MySql解除安裝與配置問題

今天忙活了一整天的MySql的配置,原因主要是對MySql的配置檔案中的 datadir 及 socket的選項修改不當造成的。出現故障時,並沒有想到要記錄下故障資訊,因此,在這裡大致還原下。 首先,我作死地更改my.cnf(實際上由於版本問題,配置檔案其實在/etc/my

ubuntu搭建android開發環境ubuntu安裝搜狗輸入法by 星空武哥

      剛安裝完的ubuntu系統預設的鍵盤輸入方式是IBus,但是作為android開發的ubuntu“系統鍵盤輸入方式系統”是不支援Ibus的,所以我們要安裝搜狗輸入法。 安裝搜狗

HTML入門後臺系統顯示頁面_框架標簽

row http head span 技術分享 target html top logs <!DOCTYPE html> <html> <head> <meta charset="UTF-8">

個性化推薦系統---推薦系統意義一點思考

進展 這樣的 es2017 意見 推廣 移動 付出 技術 com 個性化推薦是隨著移動互聯網發展不斷發展起來的,國內應用個性化推薦技術最早應該是豆瓣,在web2.0興起時做了很多嘗試,給網民帶來很多新鮮感覺、體驗。後來是國外電影租賃網站netflex推波助瀾

自動化服務部署:Linux安裝Git

ima yum lan 參考 lease 指令 mage sta shu Git是一個開源的分布式版本控制系統,可以有效、高速的處理從很小到非常大的項目版本管理,是目前使用範圍最廣的版本管理工具。 這篇博客,介紹下Linux下安裝Git的步驟,僅供參考,當然,還是yum安裝

Linux 筆記 - 第十三章 Linux 系統日常管理之Linux 系統日誌和服務

pac ica link tor 包含 3.1 request closed comm 博客地址:http://www.moonxy.com 一、前言 日誌文件記錄了系統每天發生的各種各樣的事情,比如監測系統狀況、排查問題等。作為系統運維人員可以通過日誌來檢查錯誤發生的原因

Mac osx 10.10系統MySQL安裝安裝失敗解決方法

首先,官網下載MySQL,我下的版本是mysql-5.6.21-osx10.9-x86_64.dmg http://dev.mysql.com/downloads/mysql/ (來份度盤嗎親?連結: http://pan.baidu.com/s/1i31iz1F 密碼: uyd

阿里Centos搭建svn私有程式碼倉庫

一、下載svn並安裝 yum -y install subversion mkdir -p /usr/local/repositories/mysvn //建立svn倉庫目錄 svnadmin create /usr/local/repositories/mysvn/

-Linux系統強制踢掉登錄用戶

登錄用戶 其中 第一個 root用戶 mage 分享圖片 終端 可用 桌面環境 一、查看用戶 inux系統root用戶可強制踢制其它登錄用戶,首先可用w命令查看登錄用戶信息root@musicoder:/home/ju# w二、強制踢人命令格式:pkill -kill -t

【Unity UGUI有趣應用 】 -------------------- 揹包系統之簡易單頁揹包系統及檢索功能的實現

揹包系統,無論是遊戲還是應用,都是常常見到的功能,其作用及重要性不用我多說,玩過遊戲的朋友都應該明白。 在Unity中實現一個簡易的揹包系統其實並不是太過複雜的事。本文要實現的是一個帶檢索功能的揹包系統。先看一下我們要完成的效果 。由於上傳的gif圖不能大於5M,所以錄製

嵌入式攻城獅養成計劃嵌入式系統基礎之看懂各類介面及原理圖

 Emmmmm.先寫個目錄,慢慢更新。 一、上電啟動 二、GPIO介面 GPIO——通用輸入輸出介面(General Purpose Input/Output) 上拉、下拉電阻:當GPIO引腳處於第三態(既不是輸出高電平,也不是輸

阿里感悟- 如何做實習生Review?

2:你是如何學習新技術的? 自己學習新技術的方式是不是最高效的,是先把理論知識學紮實,還是遇到問題才去找資料。 3:工作和生活中有沒有什麼困惑? 對實習生的幾點建議: 1:制定明確的學習計劃。計劃至少精確到周,比如本週學習Spring AOP,下週學習Ibatis官方文件,學習完之後能講清楚實現原理和優缺點

RabbitMQ Win7系統安裝與配置

安裝 下載Erlang,地址:http://www.erlang.org/download/otp_win32_R15B.exe,雙擊安裝即可(首先裝) 下載RabbitMQ,地址:http://www.rabbitmq.com/releases/rabbitmq-serv

RK3128系統&驅動開發分享——系統啟動

RK3128系統啟動大致流程分三個階段1、boot啟動,即rk3128MiniLoaderAll(L)_V2.31.bin和uboot.img啟動2、linux核心啟動,即kernel.img的啟動3、android系統的啟動,即ramdisk.img、system.img的

Android RecyclerView (四)總結-並且實現拉重新整理資料,上拉載入資料功能

我們使用的程式碼還是為以前文章寫的。 這一次我們主要實現的是下拉重新整理資料,和上拉載入資料,這裡我都用Thread.sleep(xxx)的方法來模擬獲取資料等待。 首先我們下拉重新整理的時候要用到: SwipeRefreshLayout 來看一下如何在

《Linux系統》之"皮毛系列" Linux系統的常用命令

通過前兩篇文章的介紹,我們知道Linux系統的理念是:一切皆檔案。而檔案,就要涉及到命名規範,如下所示: 1)除了/之外,所有字元都合法 2)有些字元最好不要用,如空格符、製表符、字元@#$&()-等 3)避免使用.作為普通檔名的第一個字元。 4)大小寫敏感 今天我們來

ARM架構aarch64Ubuntu 系統搭配 Xfce桌面環境配置 Qt程式開機啟動

準備工作 在要執行的二進位制可執行檔案同目錄下新建 run.sh 檔案 echo '123456'|sudo -S ./exe   給run.sh 新增可執行許可權 chmod 777 run.sh   Xfce桌面選單 -> Settings -&g

目標檢測光流法:opencv光流Farneback法

上節說到過的calcOpticalFlowPyrLK光流演算法,可以看到它實際上是一種稀疏特徵點的光流演算法,也就是說我們先找到那些(特徵)點需要進行處理,然後再處理,該節介紹下一個全域性性的密集光流演算法,也就是對每一個點都進行光流計算,函式為calcOpti