MySQL error code
MySQL error 1822
MySQL server error 1822 is ER_FK_NO_INDEX_PARENT, reported with SQLSTATE HY000.
Failed to add the foreign key constraint. Missing index for constraint '%s' in the referenced table '%s'
| Error | 1822 |
|---|---|
| Name | ER_FK_NO_INDEX_PARENT |
| SQLSTATE | HY000 |
| Group | Server errors |
Source: MySQL 8.4 Error Reference