{
  "id": "P222",
  "slug": "mysql-8-4-change-replication-source-to-source-host-source-auto-position-master-host-deprecated-r",
  "status": "verified-page-ready",
  "product": "MySQL 8.4",
  "family": "Database operational contract",
  "canonical_url": "https://gitdocs.org/fix/mysql-8-4-change-replication-source-to-source-host-source-auto-position-master-host-deprecated-r",
  "query_alias_url": "https://gitdocs.org/q/mysql-8-4-change-replication-source-to-source-host-source-auto-position-master-host-deprecated-r",
  "markdown_url": "https://gitdocs.org/fix/mysql-8-4-change-replication-source-to-source-host-source-auto-position-master-host-deprecated-r.md",
  "json_url": "https://gitdocs.org/api/fixes/mysql-8-4-change-replication-source-to-source-host-source-auto-position-master-host-deprecated-r.json",
  "canonical_query": "MySQL 8.4 CHANGE REPLICATION SOURCE TO SOURCE_HOST SOURCE_AUTO_POSITION MASTER_HOST deprecated removed",
  "observed_codex_queries": [
    "MySQL 8.4 CHANGE REPLICATION SOURCE TO SOURCE_HOST SOURCE_AUTO_POSITION MASTER_HOST deprecated removed",
    "site:dev.mysql.com/doc/refman/8.4 CHANGE REPLICATION SOURCE TO SOURCE_HOST SOURCE_AUTO_POSITION MASTER_HOST",
    "dev.mysql.com MySQL 8.4 CHANGE REPLICATION SOURCE TO SOURCE_HOST",
    "https://dev.mysql.com/doc/refman/8.4/en/change-replication-source-to.html",
    "'MASTER_HOST' in https://dev.mysql.com/doc/refman/8.4/en/change-replication-source-to.html",
    "https://dev.mysql.com/doc/refman/8.4/en/replication-compatibility.html",
    "'CHANGE MASTER' in https://dev.mysql.com/doc/refman/8.4/en/mysql-nutshell.html"
  ],
  "organic_dependency_search_count": 7,
  "affected_versions": "MySQL 8.4 replication administration scripts still using legacy MASTER terminology.",
  "exact_errors": [
    "ERROR 1064 syntax error near MASTER",
    "START SLAVE or CHANGE MASTER syntax fails after upgrade"
  ],
  "diagnosis": "MySQL 8.4 completes several replication terminology removals. Use the `REPLICA` and `SOURCE` forms and include authentication requirements for modern plugins.",
  "before": "STOP SLAVE;\nCHANGE MASTER TO MASTER_HOST='db1', MASTER_AUTO_POSITION=1;\nSTART SLAVE;",
  "after": "STOP REPLICA;\nCHANGE REPLICATION SOURCE TO SOURCE_HOST='db1', SOURCE_AUTO_POSITION=1;\nSTART REPLICA;",
  "verification": "mysql -e \"SHOW REPLICA STATUS\\\\G\"",
  "unsafe_fixes": [
    "Do not downgrade syntax while also upgrading server packages; mixed terminology tends to fail late in automation."
  ],
  "last_verified_at": "2026-06-25",
  "neutral_validation": {
    "organic_search_observed": true,
    "organic_strict_pass": true,
    "no_web_counterfactual_run": false,
    "no_web_strict_pass": null,
    "search_necessity_under_fixture": null,
    "no_web_oracle_note": "Observed query evidence is separated from necessity proof; no-web and stale-contract counterfactuals should be tracked separately."
  },
  "source_trail": [
    {
      "url": "https://dev.mysql.com/doc/relnotes/mysql/8.4/en/news-8-4-0.html",
      "label": "MySQL 8.4.0 release notes"
    },
    {
      "url": "https://dev.mysql.com/doc/refman/8.4/en/change-replication-source-to.html",
      "label": "Official reference opened by Codex"
    },
    {
      "url": "https://dev.mysql.com/doc/refman/8.4/en/replication-compatibility.html",
      "label": "Official reference opened by Codex"
    },
    {
      "url": "https://dev.mysql.com/doc/relnotes/mysql/8.4/en/news-8-4-0.html",
      "label": "Authoritative source"
    }
  ],
  "source_github_links": []
}
