The data directory location is controlled by the
datadir variable. Look at your /etc/mysql/my.cnffile to see where your installation of MariaDB is configured to store data. The default is/var/lib/mysql but it is often changed, like for example if you are using a RAID array.