手残删除了/etc/mysql文件夹中所有内容,导致现在无法安装mariadb,我应该如何修复?
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)
感谢
sudo apt-get remove --purge mysql-*
sudo apt-get install mysql-server mysql-client