How to Fix MySQL Error 1720 (ER_PLUGIN_NO_UNINSTALL)
You get mysql error 1720 when you try to remove a locked plugin while the server runs. To fix it, you must stop the database server and remove the plugin from your startup settings. MySQL logs this issue under the symbol ER_PLUGIN_NO_UNINSTALL and SQLSTATE HY000. The message says the plugin is marked as not uninstallable while the database runs. You have to stop the server to uninstall it. What causes mysql error 1720 in your database MySQL uses plugins to add features like storage engines,
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 get mysql error 1720 when you try to remove a locked plugin while the server runs. To fix it, you must stop the database server and remove the plugin from your startup settings.
MySQL logs this issue under the symbol ER_PLUGIN_NO_UNINSTALL and SQLSTATE HY000. The message says the plugin is marked as not uninstallable while the database runs. You have to stop the server to uninstall it.
What causes mysql error 1720 in your database
MySQL uses plugins to add features like storage engines, password checks, and audit logs. Admins can load and unload many plugins while the database stays online. Still, some plugins hook deep into the core server memory and threads.
Plugin authors mark these deep plugins so you cannot remove them from a live server. If you unload them while queries run, the server could crash or corrupt data. When a user runs an uninstall command on one, the engine blocks the action.
The server then returns error code 1720 to protect active workloads. This happens often with core storage engines or security tools that check every login. You enforces policy on this lock from an active client session.
How to diagnose the locked plugin
Before you plan a restart, check which plugins are active on your server. Have a database admin query the system plugin table in a read-only session. This view shows the plugin name, status, and load type.
Check your server startup files as well. Many teams load plugins through startup files so they turn on at boot time. If you do not update the startup file, the plugin will load again after a restart.
Also check if any apps or tables still use the plugin. If a plugin runs a storage engine, check that no tables use that engine. Removing an active storage engine can make those tables unreadable after the server starts.
MySQL Access Governance + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
If the plugin handles user logins, check user accounts first. Make sure no active accounts rely on that plugin to log in. Otherwise, those users or apps will fail to log in after the reboot.
How to fix the error in production
Fixing this issue requires a full server stop, so plan a maintenance window. Never grant broad system roles to regular users to let them force plugin changes. Keep plugin changes restricted to senior database admins.
In a cluster with replicas, fix the replicas first to avoid downtime. Stop the database service on one replica and edit its startup file. Remove the entries that load the target plugin.
Start the replica back up and check the server error log. Make sure the service starts clean without warnings or missing plugin alerts. Test your app against this replica to confirm all queries still work.
Once the replicas run fine, promote a clean replica to act as the primary node. Then repeat the stop and edit steps on the old primary server. This rolling approach removes the locked plugin without dropping live app traffic.
If you run a single server without replicas, schedule brief downtime with your team. Stop the app traffic, shut down the database, and update the startup file. Start the database again and check the system plugin list to confirm the fix.
Inspect every MySQL query and response in flight
Static grants and network rules block bad logins. They cannot pause a risky query for review or mask emails in a result set. By design, hoop.dev sits inline in the MySQL protocol as a sidecar for your MySQL. For every plain query, prepared statement, or cursor an agent or human runs in production, hoop.dev decides to pass, mask, block, or hold it for review.
First, hoop.dev guardrails block banned actions before MySQL runs them, and an AI Analyzer you configure can score intent or escalate for approval. Next, hoop.dev data masking rewrites sensitive string columns in results in memory, and every verdict goes to the audit trail. Find the open-source binary on GitHub.
Frequently asked questions
Can I force MySQL to unload a plugin without a restart?
No, the database engine blocks this action in its core code to prevent crashes. When a plugin has the no-uninstall flag set, only a server stop can remove it.
Why does the plugin come back after I restart the server?
The plugin is still listed in your server startup settings file. You must remove the plugin entry from that file before you start the server again.
Does mysql error 1720 affect active queries or data?
No, this error only rejects the command that tried to remove the plugin. Your active queries, data, and the plugin itself keep running as normal.
Related guides
In this post