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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ea28-2c410.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ea28-2c410.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?