1742
MySQLERRORNotableReplicationHIGH confidence
Replication info data too long
Production Risk
High — replication halted.
What this means
The data written to a replication info repository (master.info or relay-log.info) exceeds the maximum allowed length.
Why it happens
- 1Extremely long file path or host name stored in replication metadata.
- 2Corrupted replication info file.
How to reproduce
trigger — this will error
trigger — this will error
-- Occurs internally; triggered by CHANGE MASTER TO with very long values
expected output
ERROR 1742 (HY000): Variable length data too long for replication info.
Fix
Use shorter host names and paths
Use shorter host names and paths
CHANGE MASTER TO MASTER_HOST='short-hostname', MASTER_LOG_FILE='binlog.000001';
Why this works
Keeps replication metadata within size limits.
What not to do
✕
Sources
Official documentation ↗
MySQL 8.0 — 1742 ER_RPL_INFO_DATA_TOO_LONG
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev