wow, an incredibly detailed deinstallation guide. This bug seems to be nasty.
Try this first
apt purge mysql* mariadb*
devil's workaraound is necessary to do this
Remove what is found here
find / -name mysql*
I didn't do this. I have several TB under /disks , which took too long and I was too lazy to do it otherwise.
apt clean
I noticed that "clean" is not part of the man page of apt
rm /var/cache/apt/archives/mariadb*
rm /var/cache/apt/archives/mysql*
Possibly these symbolic links are pointing to missing files
rm /etc/systemd/system/mysqld.service
rm /etc/systemd/system/mysql.service
This won't hurt either
rm -R /etc/mysql
rm -R /varl/lib/mysql
very thorough instructions, but the mentioned stuff wasn't there anymore. apt purge/clean did its job.
** IMPORTANT ** REBOOT then
apt install mariadb-server
from my KDE machine (after reboot and install), which also had problems, as I just noticed:
root@kde:~# mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 10.1.22-MariaDB- Debian 9.0
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> Bye
Let us know any other errors, you might have to run
dpkg-reconfigure mariadb-server-10.1
This command didn't ask or show anything, which I assume is a good sign.
root@kde:~# dpkg-reconfigure mariadb-server-10.1
root@kde:~#
Thanks piper!