3321
MariaDBERRORNotableResource GroupsHIGH confidence
Invalid VCPU ID specified for resource group
Production Risk
Low — DDL fails; no group is created or modified.
How to reproduce
trigger — this will error
trigger — this will error
CREATE RESOURCE GROUP rg_bad TYPE = USER VCPU = 0-999;
expected output
ERROR 3321 (HY000): Invalid VCPU ID 999 specified for resource group 'rg_bad'.
Fix
Use valid VCPU IDs
Use valid VCPU IDs
CREATE RESOURCE GROUP rg_ok TYPE = USER VCPU = 0-3 THREAD_PRIORITY = 0;
Why this works
Limiting VCPU to physically present cores avoids the OS rejection.
What not to do
✕
Sources
Official documentation ↗
MySQL 8.0 — 3321 ER_INVALID_VCPU_ID
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev