How to Fix MySQL Error 1619 (ER_PLUGIN_DELETE_BUILTIN)

Published
Length
3 min read

Luis Felipe Dias

All posts

You trigger mysql error 1619 when you try to delete a built-in database plugin. You fix this error by turning off the feature in your settings file instead. MySQL ships with several core plugins baked right into the main server binary. The database engine relies on these built-in parts to run basic storage and login tasks. When an admin tries to drop one at runtime, the server blocks the action. It returns the symbol ER_PLUGIN_DELETE_BUILTIN and the HY000 state to protect the active system. The

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

You trigger mysql error 1619 when you try to delete a built-in database plugin. You fix this error by turning off the feature in your settings file instead.

MySQL ships with several core plugins baked right into the main server binary. The database engine relies on these built-in parts to run basic storage and login tasks. When an admin tries to drop one at runtime, the server blocks the action. It returns the symbol ER_PLUGIN_DELETE_BUILTIN and the HY000 state to protect the active system. The official server message states that built-in plugins cannot be deleted.

Why mysql error 1619 happens in your database

MySQL supports two main types of plugins in its core engine architecture. Dynamic plugins load from external shared library files stored on your server disk. You can install or remove those dynamic files while the database is running. Built-in plugins are different because they compile directly into the core server binary.

Because they live inside the binary, the engine cannot delete them from memory. If you run an uninstall statement against a built-in plugin, the command fails right away. This often happens during security audits when teams try to strip out unused features. A team might run a cleanup script that targets every plugin on a list. When that script hits a compiled component, the server stops and throws code 1619.

Automated setup tools can also cause this failure during routine server updates. If an update script confuses a built-in module with an external extension, the run breaks. The database protects itself by refusing the drop request and keeping the binary intact.

How to diagnose and fix ER_PLUGIN_DELETE_BUILTIN in production

First, you need to check which plugins are compiled into your database server. Query the information schema plugin table or check the active server status list. Look at the library column for the plugin you want to remove. If the library field is empty or null, that plugin is built into MySQL.

Once you confirm the plugin is built in, remove the drop statement from your scripts. You cannot use runtime SQL commands to delete a compiled feature from the binary. If your goal is to turn off a non-essential built-in plugin, use the settings file. Open your main server file and set that plugin to off for the next startup. Then plan a safe maintenance window to restart the database service and apply the change.

MySQL Access Governance + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Note that some core plugins, like the primary storage engine, must always stay active. For these required parts, leave them alone and focus on locking down user roles instead. Do not grant full admin rights to deployment scripts just to bypass plugin errors. Keep user privileges narrow so automated jobs cannot alter server components in production. Check your deployment logs after the fix to confirm the error is gone.

Preventing plugin errors in automated workflows

You can avoid future failures by checking plugin types before running changes. Update your provisioning scripts to read the plugin table before attempting any removal steps. Filter out any row where the library name is null so scripts skip built-in modules. This simple check keeps your deployment pipelines clean and prevents sudden script halts.

Also, test all database hardening scripts in a staging setup that matches production. Make sure the staging server uses the exact same MySQL build as your live system. Different builds can compile different plugins into the binary, which changes how scripts behave. Catching these differences early stops error 1619 from ever reaching your live database.

Add wire guardrails and masking beside MySQL

Database grants and TLS setup decide who can reach MySQL. Even so, an open session can run broad updates or read raw personal data from allowed tables. In practice, hoop.dev sits inline in the wire protocol beside the database as a sidecar for your MySQL. On every production query an agent or engineer sends, hoop.dev decides to pass, mask, block, or escalate it for human review.

With hoop.dev MySQL support, guardrails refuse bad queries before they run or hold risky calls for approval, while data masking rewrites matched sensitive values in result rows in memory. Furthermore, hoop.dev holds SOC 2 Type II and generates evidence for GDPR, HIPAA, and PCI DSS programs. Read the docs and source on GitHub.

Frequently asked questions

What does MySQL error 1619 mean?

It means a user or script tried to delete a plugin compiled into the server. MySQL blocks this action and returns symbol ER_PLUGIN_DELETE_BUILTIN with SQLSTATE HY000.

How can I tell if a MySQL plugin is built in?

Check the plugin table in the information schema and look at the library name column. Built-in plugins show a null value because they do not use an external file.

Can I turn off a built-in plugin without deleting it?

Yes, you can turn off most optional built-in plugins in your main server settings file. You must restart the MySQL service for the startup change to take effect.

The query runs. The emails stay hidden.