• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • SHOW PRIVILEGES语句

    SHOW PRIVILEGES
    

    SHOW PRIVILEGES显示MySQL服务器支持的系统特权列表。显示的特权包括所有静态特权和所有当前注册的动态特权。

    mysql> SHOW PRIVILEGES\G
    *************************** 1. row 	***************************
    Privilege	: Alter
      Context	: Tables
      Comment	: To alter the table
    	*************************** 2. row 	***************************
    Privilege	: Alter routine
      Context	: Functions,Procedures
      Comment	: To alter or drop stored functions/procedures
    	*************************** 3. row 	***************************
    Privilege	: Create
      Context	: Databases,Tables,Indexes
      Comment	: To create new databases and tables
    	*************************** 4. row 	***************************
    Privilege	: Create routine
      Context	: Databases
      Comment	: To use CREATE FUNCTION/PROCEDURE
    	*************************** 5. row 	***************************
    Privilege	: Create temporary tables
      Context	: Databases
      Comment	: To use CREATE TEMPORARY TABLE
    ...
    

    SHOW GRANTS语句显示属于特定用户的特权。有关更多信息,请参见“ SHOW GRANTS语句”。