3622
MariaDBERRORNotableAccess ControlHIGH confidence

Duplicate key in partial revoke grant table

Production Risk

Medium — Privilege change fails; retry after serializing operations.

How to reproduce
trigger — this will error
trigger — this will error
-- Concurrent REVOKE operations on same user

expected output

ERROR 3622 (HY000): Duplicate key detected in partial revoke grant table.

Fix

Serialize privilege changes

Serialize privilege changes
-- Use application-level locking or serialized migration scripts for privilege changes

Why this works

Prevents concurrent GRANT/REVOKE conflicts.

What not to do

Version notes

Sources
Official documentation ↗

MySQL 8.0 — 3622 ER_DA_DUPLICATE_KEY_FOR_PARTIAL_REVOKE

Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev

← All MariaDB errors