|
| 1 | +# Breaking and incompatible changes in {{vers}} |
| 2 | + |
| 3 | +Review these items before upgrading from 8.0 to {{vers}}. This document covers breaking behavioral changes, removed features, and removed variables that may affect your upgrade. Each entry includes the impact, replacement (if available), and recommended action. |
| 4 | + |
| 5 | +## Authentication and user management |
| 6 | + |
| 7 | +Impact: |
| 8 | + |
| 9 | +* `mysql_native_password` is disabled by default in {{vers}}; new users default to `caching_sha2_password`. |
| 10 | + |
| 11 | +* The `mysql_native_password` plugin can still be loaded using `--mysql-native-password=ON` if needed for backward compatibility. |
| 12 | + |
| 13 | +* In the 9.x series, `mysql_native_password` will be completely removed. |
| 14 | + |
| 15 | +* `default_authentication_plugin` variable is removed. |
| 16 | + |
| 17 | +Replacement: |
| 18 | + |
| 19 | +* New users default to `caching_sha2_password`; configure authentication via supported mechanisms without this variable. |
| 20 | + |
| 21 | +Action: |
| 22 | + |
| 23 | +* Identify accounts and applications using `mysql_native_password` and plan migration to `caching_sha2_password`. |
| 24 | +* If necessary for temporary compatibility, you can enable `mysql_native_password` with `--mysql-native-password=ON`, but plan to migrate accounts as this plugin will be removed in future versions. |
| 25 | +* Validate driver/client support for `caching_sha2_password` and TLS. |
| 26 | +* Ensure drivers and clients support `caching_sha2_password`. |
| 27 | + |
| 28 | +## Replication terminology and commands |
| 29 | + |
| 30 | +Impact: |
| 31 | + |
| 32 | +* MASTER/SLAVE terms and statements are removed in {{vers}} and will cause syntax errors if used. |
| 33 | + |
| 34 | +* Statements such as `CHANGE MASTER TO`, `START SLAVE`, `STOP SLAVE`, and `SHOW SLAVE STATUS` are no longer supported. |
| 35 | + |
| 36 | +* Related status variables and counters (for example, `Com_show_slave_status`) are also removed. |
| 37 | + |
| 38 | +Replacement: |
| 39 | + |
| 40 | +* Use SOURCE/REPLICA equivalents: `START REPLICA`, `SHOW REPLICA STATUS`, `CHANGE REPLICATION SOURCE TO` and updated status fields. |
| 41 | + |
| 42 | +Action: |
| 43 | + |
| 44 | +* Update operational scripts, automation, and runbooks to new commands before upgrading. |
| 45 | + |
| 46 | +* Search for and replace all MASTER/SLAVE statements in your codebase with their SOURCE/REPLICA equivalents. |
| 47 | + |
| 48 | +* Update scripts, automation, and monitoring that reference removed statements or counters. |
| 49 | + |
| 50 | +* Re-test replication lifecycle: provisioning, change-source, failover. |
| 51 | + |
| 52 | +## Spatial indexes |
| 53 | + |
| 54 | +Impact: |
| 55 | + |
| 56 | +* A known issue can corrupt a spatial index (R-Tree index) in MySQL 8.4.0 through 8.4.4. The corruption is triggered when an `UPDATE` that slightly changes a geometry's MBR (Minimum Bounding Rectangle) is immediately followed by a `DELETE` of the same row. The R-Tree index can retain a dangling leaf, leading to "Incorrect key file" errors. |
| 57 | + |
| 58 | +Action: |
| 59 | + |
| 60 | +* Upgrade to 8.4.5 or later, which fixes this issue. |
| 61 | + |
| 62 | +* If you must remain on 8.4.0-8.4.4, apply one of these workarounds: |
| 63 | + * Serialize UPDATE and DELETE statements (ensure they don't execute in immediate succession) |
| 64 | + * Rebuild the spatial index after operations that might trigger the bug |
| 65 | + * Set `innodb_rtree_index_update_interval=0` to disable deferred updates |
| 66 | + |
| 67 | +* If you're planning an upgrade from 8.0 or an earlier 8.4 point release, schedule a pre-upgrade test that exercises an update-then-delete pattern on a table with a spatial index. Verify the index remains healthy with `CHECK TABLE ... EXTENDED`. This will surface the bug before you move production data. |
| 68 | + |
| 69 | +* As a precautionary measure, you can drop spatial indexes before upgrade and re-create them after upgrade, then verify integrity. |
| 70 | + |
| 71 | +## New reserved keywords |
| 72 | + |
| 73 | +Impact: |
| 74 | + |
| 75 | +* New reserved words (for example, `MANUAL`, `PARALLEL`, `QUALIFY`, `TABLESAMPLE`) may conflict with unquoted identifiers and break queries. |
| 76 | + |
| 77 | +Action: |
| 78 | + |
| 79 | +* Scan schemas and queries for unquoted usage; quote or rename objects. |
| 80 | + |
| 81 | +* See: [Keywords and Reserved Words in MySQL {{vers}}](https://dev.mysql.com/doc/refman/{{vers}}/en/keywords.html) for the complete list of reserved keywords. |
| 82 | + |
| 83 | + |
| 84 | +## Data type restrictions |
| 85 | + |
| 86 | +Impact: |
| 87 | + |
| 88 | +* `AUTO_INCREMENT` is not permitted on `FLOAT` or `DOUBLE`. |
| 89 | + |
| 90 | +Action: |
| 91 | + |
| 92 | +* Convert these columns to `INTEGER` before upgrading. |
| 93 | + |
| 94 | +## Removed SQL function |
| 95 | + |
| 96 | +Impact: |
| 97 | + |
| 98 | +* `WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS()` function is removed (deprecated in 8.0). |
| 99 | + |
| 100 | +Replacement: |
| 101 | + |
| 102 | +* `WAIT_FOR_EXECUTED_GTID_SET()`. |
| 103 | + |
| 104 | +Action: |
| 105 | + |
| 106 | +* Replace function usage in procedures, scripts, and runbooks. |
| 107 | + |
| 108 | +## Binary log retention variable |
| 109 | + |
| 110 | +Impact: |
| 111 | + |
| 112 | +* `expire_logs_days` variable is removed. |
| 113 | + |
| 114 | +Replacement: |
| 115 | + |
| 116 | +* `binlog_expire_logs_seconds`. |
| 117 | + |
| 118 | +Action: |
| 119 | + |
| 120 | +* Adjust configuration and automation to use seconds-based retention. |
| 121 | + |
| 122 | +## Memcached-related variables and APIs |
| 123 | + |
| 124 | +Impact: |
| 125 | + |
| 126 | +* Built-in memcached integration variables (for example, `daemon_memcached`, `innodb_api`, and related settings) are removed. |
| 127 | + |
| 128 | +Replacement: |
| 129 | + |
| 130 | +* Externalize caching at the application tier or separate cache services. |
| 131 | + |
| 132 | +Action: |
| 133 | + |
| 134 | +* Remove dependencies on the built-in memcached functionality. |
| 135 | + |
| 136 | +## Further reading |
| 137 | + |
| 138 | +* [Upgrade overview](./upgrade.md) |
| 139 | +* [Upgrade checklist for {{vers}}](./upgrade-checklist-8.4.md) |
| 140 | +* [Upgrade procedures for {{vers}}](./upgrade-procedures.md) |
| 141 | +* [Upgrade strategies](./upgrade-strategies.md) |
| 142 | +* [MySQL upgrade paths and supported methods](./mysql-upgrade-paths.md) |
| 143 | +* [Upgrade from plugins to components](./upgrade-components.md) |
| 144 | +* [Upgrade to Percona Server for MySQL Pro](./upgrade-pro.md) |
| 145 | +* [Downgrade options](./downgrade.md) |
| 146 | +* [Compatibility and removed items in {{vers}}](./8.4-compatibility-and-removed-items.md) |
| 147 | +* [Defaults and tuning guidance for {{vers}}](./8.4-defaults-and-tuning.md) |
| 148 | +* [Percona Toolkit updates for {{vers}}](./percona-toolkit-8.4-updates.md) |
| 149 | + |
| 150 | + |
0 commit comments