<p>The server warns that saving replication credentials in the master info repository is insecure.</p>
<p>MySQL Error 1760: ER_INSECURE_CHANGE_MASTER signals that storing replication user names or passwords in the master info repository is unsafe. Reissue CHANGE MASTER TO or START SLAVE using the USER and PASSWORD connection options or a secure credential store to eliminate the warning.</p>
Storing MySQL user name or password information in the
The server raises error 1760 when a CHANGE MASTER TO statement attempts to write the replication user name or password into the master info repository. That file or table is often world readable, so embedding secrets there is considered unsafe.
MySQL 5.7.6 and later discourage credential storage in plain text. Instead, credentials should be supplied with the USER and PASSWORD connection options during START SLAVE (or START REPLICA) or through a protected option file.
The error appears when CHANGE MASTER TO USER='repl' PASSWORD='secret' is used, or when MASTER_USER and MASTER_PASSWORD are still present in a legacy configuration file. Upgraded servers detect the insecure fields and throw ER_INSECURE_CHANGE_MASTER.
It can also surface if mysql_upgrade migrates master info data from a file to the mysql.slave_master_info table and finds credentials embedded in the table columns.
Remove USER and PASSWORD from CHANGE MASTER TO. Then start replication with START SLAVE USER='repl' PASSWORD='secret'. The credentials stay in memory and never touch disk.
If automation requires a static file, use an option file readable only by the mysql system user and refer to it with --defaults-extra-file when starting mysqld or mysql.
After an in-place upgrade, servers configured years ago trigger the warning at startup. Edit the my.cnf file, delete MASTER_USER and MASTER_PASSWORD lines, and restart replication securely.
CI/CD scripts that run CHANGE MASTER TO during container creation must be updated. Parameterize credentials and supply them to START REPLICA instead.
Always supply replication credentials dynamically using connection options. Restrict file permissions on option files to 600 and ensure they sit on encrypted storage.
Monitor the error log for ER_INSECURE_*, audit configuration management, and rotate replication passwords regularly with ALTER USER.
Error 1759 ER_SLAVE_FATAL_ERROR_READING_MASTER treats malformed CHANGE MASTER TO strings. Validate syntax before execution.
Error 1872 ER_SLAVE_RELAY_LOG_REPOSITORY requires creating relay log info tables when upgrading. Run mysql_upgrade to fix.
Older HOW-TO guides still embed USER and PASSWORD directly in the statement, which triggers the warning on current releases.
Replication credentials hard-coded under [mysqld] or [client] sections are picked up at runtime and flagged as insecure.
If mysql_upgrade moves data into mysql.slave_master_info with credentials intact, the server raises ER_INSECURE_CHANGE_MASTER.
Raised when replication metadata is unreadable, often accompanying syntax mistakes in CHANGE MASTER TO.
Indicates general issues with the master info repository path or permissions.
Appears when MySQL cannot create the relay log info repository during upgrades.
No. ER_INSECURE_CHANGE_MASTER is a warning, but you should still fix it to protect credentials.
You can set log_error_verbosity to ignore it, yet removing insecure storage is strongly recommended instead of hiding the message.
The clauses still work but are deprecated for security. START SLAVE with connection options is the preferred alternative.
Galaxy's credential vault keeps connection strings local to your desktop session. CHANGE MASTER TO snippets shared in Galaxy never persist secrets, preventing ER_INSECURE_CHANGE_MASTER.