Not prompted to input the root password when installing mariadb-server on Ubuntu 16.04 LTS
Mariadb package doesn't offer a configuration wizard during installation on Ubuntu 16.04.
Use the below command to have a mysql shell
sudo mysql -uroot
Try sudo mysql -u root
. You should be able to login this way.