Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How To View User Privileges
How To View User Privileges? - MySQL FAQs - Managing User Accounts and Access Privileges
✍: FYIcenter.com
If a regular user wants to see his/her own granted privileges, he/she can use the "SHOW GRANTS" command. If the "root" user wants to see other user's granted privileges, he/she can use the "SHOW GRANTS FOR userName" command. The following tutorial exercise shows you how to view user's granted privileges:
>cd \mysql\bin >mysql -u root -pretneciyf mysql> SHOW GRANTS; +------------------------------------------------------ | Grants for root@localhost +------------------------------------------------------ | GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost'... +------------------------------------------------------ 1 row in set (0.00 sec) mysql> SHOW GRANTS for dev; +------------------------------------------------------ | Grants for dev@% | +------------------------------------------------------ | GRANT CREATE ON *.* TO 'dev'@'%' ... +------------------------------------------------------ 1 row in set (0.00 sec) mysql> SHOW GRANTS for qa; +------------------------------------------------------ | Grants for qa@% | +------------------------------------------------------ | GRANT USAGE ON *.* TO 'qa'@'%' ... | GRANT CREATE ON `faq`.* TO 'qa'@'%' +------------------------------------------------------ 2 rows in set (0.00 sec)
The output says:
2007-05-10, 5035👍, 0💬
Popular Posts:
What will be printed as the result of the operation below: main() { int a=0; if (a==0) printf("Cisco...
How To Get the Uploaded File Information in the Receiving PHP Script? Once the Web server received t...
Write an equivalent expression for x%8? x&7
what are the advantages of hosting WCF Services in IIS as compared to self hosting? There are two ma...
How do we configure “WebGarden”? “Web garden” can be configured by using process model settings in...