[debian-mysql] configuring mariadb on debian stretch

Otto Kekäläinen otto at debian.org
Mon Apr 17 18:53:08 UTC 2017


2017-04-17 10:44 GMT+02:00 Juha Heinanen <jh at tutpro.com>:
> I have mysql-common installed.  I tried the installation a couple of
> times and had to manually delete /etc/mysql dir, because even after
> removing/purging every packet that has maria or mysql in their name,
> /etc/mysql was not removed:
>
> # ls /etc/mysql/
> debian.cnf
>
> Should that file and the dir be removed by some postinst script, because
> the file is not statically part of any package?


If you want to have a "clean table" regarding MySQL and MariaDB, you
need to run 'sudo apt-get purge mariadb-* mysql-*; rm -rf /etc/mysql;
rm -rf /var/lib/mysql'
This will delete pretty much everything, and then you can re-install fresh.


-- 
Otto Kekäläinen
https://keybase.io/ottok
Seravo Oy and MariaDB Foundation



More information about the pkg-mysql-maint mailing list