1651
MariaDBERRORNotablePluginHIGH confidence
Plugin cannot be uninstalled — it is required by the server
Production Risk
Low — the uninstall is rejected; server is unaffected.
What this means
An attempt was made to uninstall a plugin that is built-in or required by the server and cannot be removed while the server is running.
Why it happens
- 1UNINSTALL PLUGIN was called on a plugin that is compiled into the server or is mandatory.
How to reproduce
trigger — this will error
trigger — this will error
UNINSTALL PLUGIN performance_schema;
expected output
ERROR 1651 (HY000): Plugin 'performance_schema' is permanent and cannot be unloaded.
Fix
Do not uninstall permanent plugins
Do not uninstall permanent plugins
-- If you need to disable the plugin, use the server startup option instead: -- --skip-performance-schema
Why this works
Permanent plugins can only be disabled via startup options, not at runtime.
Sources
Official documentation ↗
MySQL 8.0 — 1651 ER_PLUGIN_IS_PERMANENT
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev