Which file do I need to modify my.cnf MariaDB on Ubuntu 18.04
I had a similar problem but rectified it by adding the following line to /etc/mysql/my.cnf

!include /etc/mysql/mariadb.cnf

This seemed to fix the issue of the mariadb config file not being read.