How can I fix the mariadb, that cannot be installed after / etc/mysql has been deleted?

hand disabled deleted everything in the / etc/mysql folder, making it impossible to install mariadb, now. How should I fix it?

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)
Thank you

Mar.13,2021

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

Menu