sox: fix audit warning
mariadb: set basedir in mysql_install_db

Fixes #30125.