MySQL & MariaDB errors, explained and tested on every version
Type the error number or paste the message. Every page says which versions it applies to, and the fixes are run on real servers.
Upgrading? Paste your SQL into the checker to see which versions reject it, and why.
Most searched errors
What our version tests found
MariaDB 10.11.17+ loses rows
ALTER IGNORE TABLE … ADD PRIMARY KEY deletes every duplicated row instead of keeping one. Reported as MDEV-42382.
27 new reserved words in MySQL 8.0
AS rank, rows, groups, function now fail with 1064. See which words change on upgrade.
Same number, different error
165 error numbers mean different things in MySQL and MariaDB, mostly 4000–4999. Example: 4025.
utf8mb4 breaks fixed-width loads
LOAD DATA … FIELDS TERMINATED BY '' fails with 1406 on any utf8mb4 table, the default since MySQL 8.0.
Guides with version tables
- Adding unique constraintbehaves differently by version
- Update rank on a tablebehaves differently by version
- Import fixed width/row formatbehaves differently by version
- Copying a database, users and privileges between two serversbehaves differently by version
- Minimum privileges to take a backupbehaves differently by version
- LOAD DATA INFILEbehaves differently by version