Syntaxe de SHOW ERRORS
<<<
SHOW GRANTS Syntaxe de SHOW INDEX
>>>

14.5.3 Syntaxe de SHOW
14.5 Référence de langage d'administration de la base de données
14 Syntaxe des commandes SQL
 Manuel de Référence MySQL 4.1 : Version Française

Syntaxe de SET
Commande SHOW CHARACTER SET
Syntaxe de SHOW COLLATION
Syntaxe de SHOW COLUMNS
Syntaxe de SHOW CREATE DATABASE
Syntaxe de SHOW CREATE TABLE
Obtenir des informations sur les bases, tables, colonnes et index
Syntaxe SHOW ENGINES
Syntaxe de SHOW ERRORS
->SHOW GRANTS
Syntaxe de SHOW INDEX
Syntaxe de SHOW INNODB STATUS
Syntaxe de SHOW LOGS
SHOW PRIVILEGES
Syntaxe de SHOW PROCESSLIST
Syntaxe de SHOW STATUS
SHOW TABLE STATUS
Syntaxe de SHOW TABLES
Syntaxe de SHOW VARIABLES
SHOW WARNINGS | ERRORS

14.5.3.10 SHOW GRANTS


SHOW GRANTS FOR user
SHOW GRANTS FOR user affiche la commande nécessaire pour donner les même droits qu'un utilisateur existant.

mysql> SHOW GRANTS FOR 'root'@'localhost';
+---------------------------------------------------------------------+
| Grants for root@localhost                                           |
+---------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION |
+---------------------------------------------------------------------+
Depuis MySQL 4.1.2, pour lister les droits de la session courante, vous pouvez connaître le nom d'utilisateur de la session avec ces commandes :

SHOW GRANTS;
SHOW GRANTS FOR CURRENT_USER;
SHOW GRANTS FOR CURRENT_USER();
Avant MySQL 4.1.2, vous pouviez connaître le nom d'identification de l'utilisation avec la fonction CURRENT_USER() (nouveau en MySQL 4.0.6). Puis, utilisez cette valeur avec la commande SHOW GRANTS . Fonctions d'informations .

SHOW GRANTS est disponible depuis MySQL 3.23.4.

<< SHOW GRANTS >>
Syntaxe de SHOW ERRORS Syntaxe de SHOW Syntaxe de SHOW INDEX