mysqldude
Error codes › 1089

MySQL & MariaDB error 1089 ER_WRONG_SUB_KEY

Error messageIncorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys
MySQLMariaDB
SymbolER_WRONG_SUB_KEYER_WRONG_SUB_KEY
SQLSTATEHY000HY000
TypeServer errorServer error
Versionsevery release since 5.0 activeevery release since 5.5 active
How the message changed between versions
MySQL fromSymbolMessage
5.0.96ER_WRONG_SUB_KEYIncorrect sub part key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique sub keys
5.1.77ER_WRONG_SUB_KEYIncorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't support unique prefix keys