Kein root-Passwort bei MariaDB-Installation abgefragt

sudo mysql -u root

Dann in der mysql-Shell:

use mysql;
update user set plugin='' where User='root';
flush privileges;
\q

Danach noch:

sudo mysql_secure_installation

Siehe auch