From 3a0052832ac2e270eab3c2e1905c887e857e0988 Mon Sep 17 00:00:00 2001 From: pdiogoantunes Date: Tue, 23 May 2017 10:19:49 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20suppression=20acc=C3=A8s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoMySQL.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/HowtoMySQL.md b/HowtoMySQL.md index 5e4b2f1f..ce67886f 100644 --- a/HowtoMySQL.md +++ b/HowtoMySQL.md @@ -310,6 +310,18 @@ Supprimer une base de données : mysql> DROP DATABASE foo; ~~~ +Supprimer les différents privilèges pour un utilisateur mysql : + +~~~{ .sql } +mysql> REVOKE ALL PRIVILEGES ON base.* FROM 'user'@'localhost'; +~~~ + +Supprimer un accès (utilisateur) : + +~~~{ .sql } +mysql> DROP USER 'user'@'localhost'; +~~~ + Lancer des commandes bash depuis l'invite de commande : ~~~{ .sql }