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, 4950👍, 0💬
Popular Posts:
How do we configure “WebGarden”? “Web garden” can be configured by using process model settings in...
What is difference between ADPATCH and OPATCH ? # ADPATCH is utility to apply ORACLE application Pat...
it will be very helpful if you send some important Questions with Answers of DBMS Tell us what types...
Can Sub Procedure/Function Be Called Recursively? - Oracle DBA FAQ - Creating Your Own PL/SQL Proced...
1. The basics first, please define the web in simple language? How is it connected with internet? Wh...