. .

SHOW GRANTS

» PHP » MySQL » SHOW GRANTS MySQL

SHOW GRANTS FOR user , , . :

mysql> SHOW GRANTS FOR root@localhost;
+---------------------------------------------------------------------+
| Grants for root@localhost                                           |
+---------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO "root"@'localhost' WITH GRANT OPTION |
+---------------------------------------------------------------------+