日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關咨詢
選擇下列產(chǎn)品馬上在線溝通
服務時間:8:30-17:00
你可能遇到了下面的問題
關閉右側工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
Ubuntu重新安裝MySQL錯誤解決

新搭建的服務器,先在ubuntu上安裝mariadb,后來由于很多權限問題,決定安裝mysql,由于在卸載過程中未卸載干凈,導致MySQL重新安裝過程中出現(xiàn)了很多問題。

10年積累的網(wǎng)站制作、成都網(wǎng)站設計經(jīng)驗,可以快速應對客戶對網(wǎng)站的新想法和需求。提供各種問題對應的解決方案。讓選擇我們的客戶得到更好、更有力的網(wǎng)絡服務。我雖然不認識你,你也不認識我。但先做網(wǎng)站后付款的網(wǎng)站建設流程,更有北湖免費網(wǎng)站建設讓你可以放心的選擇與我們合作。

Reading package lists...Done
Building dependency tree
Reading state information ... Done
mysql-server is already the newest version(5.7.21-0ubuntu0.16.04.1).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-server: depends: mysql-server-5.7 but it is not going to be installed
E: Unmet dependencies.Try 'apt-get -f install' with no packages(or specify a solution).

通過閱讀錯誤信息可知,主要是因為依賴關系出現(xiàn)問題,主要思路是重建依賴關系,然后干凈卸載,最后重裝。

首先,更新系統(tǒng)

sudo apt-get update

然后,修復安裝錯誤,會提示輸入mysql用戶名密碼

sudo apt-get --fix-broken install

然后,檢索mysql安裝包,并刪除檢索出的依賴包,然后是刪除/var/lib/mysql,最后重裝mysql。

下面我把檢索到的解決方法展示給大家:

We excute the following commands to solve the above problem:
    1.Get the list of MySQL packages installed on the system by executing the command sudo dpkg -l grep mysql
    2.Remove the packages shown above by executing the command
      sudo apt-get --purge autoremove
    3. Delete /var/lib/mysql
    4.Try to install mysql again.It should solve your problem.

第二步中的packages如下圖所示:

最后就是更新系統(tǒng)并重裝mysql

sudo apt-get update

sudo apt-get install mysql-server mysql-client

總結:

整體思路還是重建依賴關系,干凈卸載,更新安裝。希望對遇到相同問題不知所措的小伙伴有所啟發(fā)、幫助。謝謝。


當前標題:Ubuntu重新安裝MySQL錯誤解決
文章路徑:http://www.5511xx.com/article/dhoejgp.html