Instructions for building MariaDB can be found at: https://kb.askmonty.org/en/compiling-mariadb-from-source/