the privilege SUPER -- provided that there isn't a user who already has the privilege RESOURCE_GROUP_ADMIN. SET @hadResourceGroupAdminPriv = (SELECT COUNT(*) FROM global_grants WHERE priv = 'RESOURCE_GROUP_ADMIN');