MariaDB behaves a bit differently than MySQL when installing (on Debian at least) – it doesn’t ask for a database root password. There is a script that is installed (on Debian 9 at least) called mysql_secure_installation which allows you to set to root password and cleans up some other stuff. Worth running after install on any production system.