Ajouter un mot de passe pour MariaDB (sur Debian 9) Il n'y a pas de mot de passe pour le compte Root par défaut, procédure d'ajout:

mysql -u root
Enter Password : ENTREE
MariaDB [(NONE)]> UPDATE mysql.user SET plugin = NULL WHERE USER = 'root' AND plugin = 'unix_socket';

Puis:

MariaDB [(NONE)]> FLUSH PRIVILEGES;

et:

MariaDB [(NONE)]> SET PASSWORD FOR root@'localhost'=PASSWORD('mon_nouveau_mot-de_passe');