Recently, have been involved with an entity that is running $RHEL7. Default DB is now MariaDB. You might not have issues with getting the most recent MariaDB since Ubuntu has rep. for lastest/greatest stuff, but if you are migrating from MySQL, found an interesting thing about MariaDB ...
DB tweaks needed even before one can import ....
a 12Gig sql dump from MySQL 5.5 failed to import max_packet_allowed's default not enough. max_allowed_packet=32
right after one imports the SQL dump from MySQL into MariaDB, one should run mysql_upgrade (commands in MariaDB are the same as MySQL). And one might have to use he force option with mysql_upgrade IF you are importing multiple MySQL 5.5 sql dumps into MariaDB 10.1..
https://mariadb.com/kb/en/mariadb/mysqld-configuration-files-and-groups/
Suggest running mysqltuner.pl often to begin with.
https://raw.githubusercontent.com/major/MySQLTuner-perl/master/mysqltuner.pl
Config files/purposes, etc. have changed locations in RHEL7 ... dunno about Ubuntu. One now has a config file for server, one for client, etc.. :\
Those of top of my tired head ... be battling solr on CentOS 5 and 6 today ... as well as unoconv. unoconv was fairly simple, but solr is proving to be a bear.
Predict using Apache solr for search in Moodle will be a support issue ... many will try ... many will fail ... many might say ... Oh, well. It might have been nice, but ...' IMHO, of course!
'spirit of sharing', Ken