How to Fix MySQL Error 3870 (ER_CLONE_PLUGIN_MATCH)

Published
Length
3 min read

Luis Felipe Dias

All posts

You see mysql error 3870 when the donor server has an active plugin missing on the recipient. To fix this failure, you must load and activate the missing plugin on the recipient server. MySQL uses a built-in clone feature to copy data from a donor to a recipient. Before data moves, both servers check their settings and active parts to make sure they match. If the donor uses a plugin that the recipient lacks, the database stops the copy right away. This stop prevents data damage and keeps the ne

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 see mysql error 3870 when the donor server has an active plugin missing on the recipient. To fix this failure, you must load and activate the missing plugin on the recipient server.

MySQL uses a built-in clone feature to copy data from a donor to a recipient. Before data moves, both servers check their settings and active parts to make sure they match. If the donor uses a plugin that the recipient lacks, the database stops the copy right away. This stop prevents data damage and keeps the new server from crashing later.

What causes mysql error 3870 in your database

MySQL tracks this specific issue with the symbol ER_CLONE_PLUGIN_MATCH and SQLSTATE value HY000. The official message states that the clone donor plugin is not active in the recipient. The database fills the message blank with the exact name of the missing plugin.

This problem happens most often when teams build a new recipient server from a base image. The older donor server might have extra plugins added over months of daily work. Common missing parts include keyring plugins for encryption, audit log plugins, or password check tools. If the donor encrypts tables with a keyring plugin, the recipient needs that exact same plugin. Without it, the recipient cannot read the copied data files when it starts up.

Version differences inside the same release series can also cause a mismatch. An admin might turn on a plugin in the donor startup file but forget the recipient file. Sometimes the plugin file sits on the recipient disk, but the server never turned it on. The clone check looks only at active plugins in memory, not files sitting on the disk.

How to find and fix the plugin mismatch

Start by reading the full error text returned by your failed clone job. Note the exact plugin name shown in the message from the donor server. Next, log in to both the donor and the recipient with a read-only check role. Compare the list of active plugins on both systems to see all gaps at once. Checking the full list helps you avoid hitting this same error twice in a row.

Once you know which plugins are missing, check the plugin folder on the recipient host. Make sure the shared library file for each missing plugin exists on that machine. Also check that the file owner matches the system account that runs the database process. If the file is missing, install the matching server package that holds the plugin.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Next, load and activate the plugin on the recipient server using a scoped admin role. Do not grant full superuser rights to routine maintenance accounts just to run this fix. You should also add the plugin name to the recipient startup file right away. The clone process restarts the recipient server when the data copy finishes. If the plugin is not in the startup file, it will turn off during that restart.

How to stop plugin drift across database clusters

Plugin drift happens when engineers make quick, untracked changes to single database servers. One server gets an audit or keyring plugin, while other nodes stay on the base build. Then, when you need to clone a node under pressure, the job fails with code 3870.

To prevent this, manage all server startup files through a single code repo. Every donor and recipient in a cluster should share the same base plugin list. Before you run a clone job, run a quick pre-check script that compares active plugins. Keep admin access tight so people cannot load random plugins on production nodes by hand. Using scoped roles and logged database sessions helps your team keep every node in sync.

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 ER_CLONE_PLUGIN_MATCH mean in MySQL?

ER_CLONE_PLUGIN_MATCH is the official symbol for MySQL error code 3870 under SQLSTATE HY000. It means the clone donor has an active plugin that is not active on the recipient.

Can I turn off the donor plugin instead of adding it to the recipient?

Yes, if the donor does not need that plugin for daily work or data encryption. You can unload the unused plugin on the donor and then run the clone job again.

Why did my clone fail again after I loaded the missing plugin?

You likely loaded the plugin in memory without saving it to the server startup file. Save the plugin setting in the startup file so it stays active across server restarts.

The query runs. The emails stay hidden.