鍍金池/ 問答/數(shù)據(jù)庫/ 刪除了/etc/mysql后無法安裝mariadb,應(yīng)該如何修復(fù)?

刪除了/etc/mysql后無法安裝mariadb,應(yīng)該如何修復(fù)?

手殘刪除了/etc/mysql文件夾中所有內(nèi)容,導(dǎo)致現(xiàn)在無法安裝mariadb,我應(yīng)該如何修復(fù)?

update-alternatives: error: alternative path /etc/mysql/mariadb.cnf doesn't exist

dpkg: error processing package mariadb-common (--configure):
installed mariadb-common package post-installation script subprocess returned error exit status 2

Errors were encountered while processing:
mariadb-common

E: Sub-process /usr/bin/dpkg returned an error code (1)
感謝

回答
編輯回答
避風(fēng)港

sudo apt-get remove --purge mysql-*
sudo apt-get install mysql-server mysql-client

2018年5月12日 02:36