- This is not an ideal solution at all, but I had to go through this since a standard path to change the data folder of MariaDB failed on me.
- This instruction is a follow-up on How to set up a VM that has a local copy of Wikipedia and How to increase a VM's disk space, and thus, this will not help other situations.
- You will remove mariadb and mariadb-server from the VM first
- You will remove mariadb related files such as
/etc/my.cnf
and/var/lib/mysql