Rechercher dans le manuel MySQL
13.7.2.3 DROP RESOURCE GROUP Syntax
DROP RESOURCE GROUP
is used for
resource group management (see
Section 8.12.5, “Resource Groups”). This statement drops a
resource group. It requires the
RESOURCE_GROUP_ADMIN
privilege.
group_name
identifies which resource
group to drop. If the group does not exist, an error occurs.
The FORCE
modifier determines statement
behavior if the resource group has any threads assigned to it:
If
FORCE
is not given and any threads are assigned to the group, an error occurs.If
FORCE
is given, existing threads in the group are moved to their respective default group (system threads toSYS_default
, user threads toUSR_default
).
Examples:
Drop a group, failing if the group contains any threads:
- DROP RESOURCE GROUP rg1;
Drop a group and move existing threads to the default groups:
Resource group management is local to the server on which it
occurs. DROP RESOURCE GROUP
statements are not written to the binary log and are not
replicated.
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-drop-resource-group.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.