Documentation Home
MySQL 9.5 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 41.2Mb
PDF (A4) - 41.3Mb
Man Pages (TGZ) - 262.8Kb
Man Pages (Zip) - 368.7Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb


MySQL 9.5 Reference Manual  /  ...  /  The revoke_schema_privileges_from_all_accounts_except() Procedure

30.4.4.25 The revoke_schema_privileges_from_all_accounts_except() Procedure

Revoke specified privileges for all users except those specified with the exclude_users argument.

Parameters

  • in_schema_name: (CHAR(255)) Schema name on which the privileges are revoked.

  • in_privileges: (JSON) Privileges to revoke. Privileges are case-insensitive.

  • in_exclude_users: (JSON) Do not exclude privileges from these users. The host part of the user is case-insensitive.

Example

            mysql> CALL sys.revoke_schema_privileges_from_all_accounts_except(
                  "my_schema",
                  JSON_ARRAY("SELECT", "INSERT"),
                  JSON_ARRAY("'root'@'localhost'"));