For Mysql you need Mysql ODBC connector: https://dev.mysql.com/downloads/connector/odbc/
Also read this: https://dev.mysql.com/doc/connector-odbc/en/connector-odbc-usagenotes-apptips-microsoft-access.html
For MariaDB I think there is also a connector but don't know if those tips for mysql apply here too.