MySQL 9.0 发行说明
Press CTRL+C to copySHOW PRIVILEGES
SHOW PRIVILEGES
显示 MySQL 服务器支持的系统权限列表。显示的权限包括所有静态权限和所有当前注册的动态权限。
Press CTRL+C to copymysql> 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 role Context: Server Admin Comment: To create new roles ...
可以使用 SHOW GRANTS
语句显示特定用户的权限。有关更多信息,请参见 第 15.7.7.22 节,“SHOW GRANTS 语句”。