mysqldude
Error codes › 1821

MySQL & MariaDB error 1821 ER_FK_NO_INDEX_CHILD

Error messageFailed to add the foreign key constraint. Missing index for constraint '…' in the foreign table '…'
MySQLMariaDB
SymbolER_FK_NO_INDEX_CHILDER_FK_NO_INDEX_CHILD
SQLSTATEHY000HY000
TypeServer errorServer error
Versionssince 5.6.51 activesince 10.0.38 active
How the message changed between versions
MySQL fromSymbolMessage
5.6.51ER_FK_NO_INDEX_CHILDFailed to add the foreign key constaint. Missing index for constraint '%s' in the foreign table '%s'
8.0.16ER_FK_NO_INDEX_CHILDFailed to add the foreign key constraint. Missing index for constraint '%s' in the foreign table '%s'
MariaDB fromSymbolMessage
10.0.38ER_FK_NO_INDEX_CHILDFailed to add the foreign key constaint. Missing index for constraint '%s' in the foreign table '%s'
10.4.34ER_FK_NO_INDEX_CHILDFailed to add the foreign key constraint. Missing index for constraint '%s' in the foreign table '%s'