Fix declaration of internal libmysql functions for MariaDB.
Make new DB data dir and config file for MariaDB.