On Fedora, MariaDB stores its flat database files in a directory that’s defined in a configuration file called mariadb-server.cnf, under the mysqld section (datadir). You’ll find this file here:
/etc/my.cnf.d/mariadb-server.cnf
The data files on a default Fedora Workstation installation are stored here:
/var/lib/mysql