13.7.7.26 显示特权声明

Press CTRL+C to copy
SHOW PRIVILEGES

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

Press CTRL+C to copy
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语句显示。有关详细信息,请参阅 第 13.7.7.21 节,“SHOW GRANTS 语句”