How to Fix MySQL Error 3868 (ER_CLONE_CONFIG)
You get mysql error 3868 when a clone donor and recipient have different settings. You can fix this issue by matching the setting values on both database servers. MySQL uses the clone plugin to copy physical data from one server to another. The server that sends data is the donor. The server that gets data is the recipient. Both servers must share the exact same core system rules before the copy starts. When a rule does not match, the engine stops the copy right away. It throws the ER_CLONE_CO
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 3868 when a clone donor and recipient have different settings. You can fix this issue by matching the setting values on both database servers.
MySQL uses the clone plugin to copy physical data from one server to another. The server that sends data is the donor. The server that gets data is the recipient. Both servers must share the exact same core system rules before the copy starts.
When a rule does not match, the engine stops the copy right away. It throws the ER_CLONE_CONFIG symbol under the HY000 state. The error text names the exact setting and shows both server values. This check keeps your files safe from corruption.
What causes mysql error 3868 in your database
The clone plugin copies raw storage blocks instead of running text queries. Because of this raw copy, both servers must format disk blocks the same way. If one server uses a different page size, the recipient cannot read the files.
Character sets and collations can also trigger this error during the pre-check phase. Sometimes a team updates a donor server but forgets to update the new recipient. Even a small mismatch in core engine rules will stop the clone job.
Storage path layouts and encryption settings must also align between the two hosts. If the donor encrypts data at rest, the recipient needs the same setup. The database engine compares these values over the network before moving any data.
How to check and fix the setting mismatch
Start by reading the full error message in your database log or client screen. The message tells you the exact setting name that failed the check. It also prints the donor value and the recipient value side by side.
Log in to both servers with a read-only role to inspect their current state. Check the runtime values and the startup files on both the donor and recipient. Do not use a superuser account just to read these basic server variables.
MySQL Access Governance + AWS Config Rules: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
You should almost always change the recipient to match the donor server. The donor holds your live data, so changing it carries too much risk. Update the recipient startup file so the change stays in place after a restart.
Some settings require you to build a fresh data folder on the recipient host. For example, you cannot change page sizes on an active database instance. Wipe the recipient data directory, apply the right setting, and start the server again.
How to prevent clone errors in production
Teams often run into this error when they build servers by hand. Manual setup leads to drift between your live nodes and your new standby nodes. You can avoid this drift by using shared templates for all database hosts.
Store your database settings in version control so every node uses the same baseline. Before you run a clone job, run a quick check script to compare variables. This simple step catches mismatches before you start a maintenance window.
Keep your database admin access tight when you fix clone settings in production. Only grant clone and admin rights to the specific roles that need them. Audit every change to your server rules so your team knows what changed.
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
Does mysql error 3868 harm data on the donor server?
No, this error stops the clone task before any data moves. Your donor server stays safe and continues to serve live traffic as normal.
Should I change the donor or the recipient to fix ER_CLONE_CONFIG?
Always update the recipient server to match the donor server settings. Changing a live donor can cause downtime or break your active apps.
Why do I need to restart the recipient after fixing the setting?
Many core storage rules are static and lock in when the database starts. You must restart the recipient service so the engine loads the new value.
Related guides
In this post