How to Fix MySQL Error 3974 (ER_DA_GRP_RPL_RECOVERY_ENDPOINT_FORMAT)
You get mysql error 3974 when your Group Replication recovery endpoint string has bad formatting. You can fix it by providing a clean, comma-separated list of IP address and port pairs. The database server tracks this problem under the symbol ER_DA_GRP_RPL_RECOVERY_ENDPOINT_FORMAT and SQLSTATE HY000. When a node tries to join a cluster, it reads this endpoint list to find peers. If the list breaks the syntax rules, the join task stops right away. What causes mysql error 3974 in Group Replicat
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 3974 when your Group Replication recovery endpoint string has bad formatting. You can fix it by providing a clean, comma-separated list of IP address and port pairs.
The database server tracks this problem under the symbol ER_DA_GRP_RPL_RECOVERY_ENDPOINT_FORMAT and SQLSTATE HY000. When a node tries to join a cluster, it reads this endpoint list to find peers. If the list breaks the syntax rules, the join task stops right away.
What causes mysql error 3974 in Group Replication
In a cluster, new or returning nodes must catch up on missed changes. They pull these changes from an existing donor node over a network socket. Operators often set up a custom list of recovery endpoints for this traffic. This keeps heavy recovery data off the main client network interface.
MySQL checks this endpoint list before it starts the recovery process. Every item in the list must pair a valid IP address with a port number. A colon must sit between the IP address and the port. When you list more than one endpoint, you must separate each pair with a comma.
Several common mistakes trigger this error during cluster setup. An admin might leave out the port number on one of the entries. Someone might use a semicolon or a space instead of a comma between endpoints. Extra spaces at the start or end of the string can also cause parsing to fail.
IPv6 addresses cause another frequent issue here. Because IPv6 addresses contain colons, the parser gets confused when it looks for the port. You must wrap IPv6 addresses in square brackets before adding the colon and port.
How to find the bad endpoint setting
Start your check by reading the database error log on the failing node. The error message prints the exact string that failed the check. Look closely at the value inside the quotes in that log message.
Recovery Point Objective (RPO) + MySQL Access Governance: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Check each entry in the string one by one. Make sure every host address has a matching colon and a valid port number. Look for hidden spaces, trailing commas, or missing brackets around IPv6 addresses.
You should also check how your team manages database settings across nodes. Sometimes an automation script builds this endpoint string from a host list. If a host variable is empty, the script might output a lone colon or a double comma. Fixing the script stops the bad value from coming back on the next deploy.
How to fix the recovery endpoint list safely
You can fix this issue without restarting the whole database cluster. First, log in to the affected node with an account that holds group admin rights. Do not grant full root access to routine maintenance users just to change one setting. Scoped admin roles let your team update cluster settings while keeping other data safe.
Stop Group Replication on the node if it is still trying to run. Update the recovery endpoints system setting with your clean, comma-separated list of IP and port pairs. Double-check that every IP address belongs to an active network interface on that machine. Verify that local firewall rules allow traffic on the chosen ports between all cluster members.
After you save the new setting, start Group Replication again on the node. Watch the server log to confirm the node connects to a donor and finishes recovery. Once the node shows an online status, write the clean string to your permanent settings file. This ensures the node uses the right endpoints if it restarts later.
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
Does mysql error 3974 mean the donor node is down?
No, this error happens before the joining node even tries to reach the network. The local server rejects the setting because the text format breaks the syntax rules.
Can I use hostnames in the recovery endpoint list?
You should stick to valid IPv4 or bracketed IPv6 addresses paired with port numbers. The error message asks for IP and port pairs, and unparsed names often fail the check.
Do I need to stop the whole cluster to fix error 3974?
No, you only need to update the setting on the node that shows the error. Other healthy nodes in the group can keep serving traffic while you fix the failing member.
Related guides
In this post