From a590201cc93b3d6fedd91ffd2ee1e5e32e84d957 Mon Sep 17 00:00:00 2001 From: btatu Date: Tue, 23 Jul 2019 14:54:08 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20d'une=20astuce=20pour=20changer=20tr?= =?UTF-8?q?=C3=A8s=20rapidement=20un=20mot=20de=20passe=20mysql?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoMySQL.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/HowtoMySQL.md b/HowtoMySQL.md index 8307a858..ee1fbb3a 100644 --- a/HowtoMySQL.md +++ b/HowtoMySQL.md @@ -684,6 +684,14 @@ mysql> use mysql; mysql> UPDATE mysql.user SET Password=PASSWORD('my_new_password') WHERE User='jdoe' and Host='localhost'; ~~~ +Ou encore plus simple en se connectant avec le compte utilisateur puis lancer les commandes suivantes sans oublier de modifier le fichier de configuration : + +~~~ +$ mysql +> set password = password("mon-mot-de-passe-en-clair"); +$ vim ~/my.cnf +~~~ + ### Changer variables globales d'environnement On peut changer à chaud certaines variables globales d'environnement :