Changing Db to mariadb

Based on your OS version, I am assuming you were using MySQL v8.0.xx

Unfortunately, the migration from MySQL v8.0+ to MariaDB isn’t as straightforward anymore and you have to use the mysqldump utility to move the database over.

This is clearly stated in the official MariaDB Docs which also has some pointers on how to migrate from MySQL v8.0+ to MariaDB.