Error codes › 1681
MySQL & MariaDB error 1681 ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT
Example from our test runs:
Integer display width is deprecated and will be removed in a future release. (8.0.46) | MySQL | MariaDB | |
|---|---|---|
| Symbol | ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT | ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT |
| SQLSTATE | HY000 | HY000 |
| Type | Server error | Server error |
| Versions | since 5.5.63 active | every release since 5.5 active |
Where this error shows up in our guides
- Query_cache_type · SELECT SQL_CACHE ... (original) MySQL 5.7
- Query_cache_type · SELECT SQL_NO_CACHE ... (original) MySQL 5.7 8.0 8.4 9
- LOAD DATA INFILE · UPDATE mysql.user SET File_priv = 'Y' + FLUSH PRIVILEGES (original alternative) MySQL 9
- Adding unique constraint · ALTER IGNORE TABLE ... ADD PRIMARY KEY (original) MySQL 5.6
- Adding unique constraint · ALTER IGNORE TABLE ... ADD UNIQUE KEY (same idea, unique index) MySQL 5.6
- Adding unique constraint · ALTER IGNORE TABLE ... ADD UNIQUE KEY on a NOT NULL column MySQL 5.6
- Runtime values · Post's CREATE TABLE with int(3)/int(6) and CHARSET=utf8 MySQL 8.0 8.4 9
- Removing duplicate records · ALTER IGNORE TABLE ... ADD UNIQUE INDEX (original) MySQL 5.6
How the message changed between versions
| MariaDB from | Symbol | Message |
|---|---|---|
| 5.5.68 | ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT | '%s' is deprecated and will be removed in a future release. |
| 10.2.44 | ER_WARN_DEPRECATED_SYNTAX_NO_REPLACEMENT | '%s' is deprecated and will be removed in a future release |