mariadb: set basedir in mysql_install_db

Fixes #30125.