Wiki Le Dantec

Wiki du LGT Le Dantec - filière numérique

Outils pour utilisateurs

Outils du site


mdpmariadb

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');
mdpmariadb.txt · Dernière modification: 2018/01/14 23:04 par admin