Make the mariadb test more reliable.
Add support for dump/import.