Error codes › 6125
MySQL error 6125 ER_FK_NO_UNIQUE_INDEX_PARENT
Example from our test runs:
Failed to add the foreign key constraint. Missing unique key for constraint 'c2_ibfk_1' in the referenced table 'p2' (8.4.13) | Symbol | ER_FK_NO_UNIQUE_INDEX_PARENT |
|---|---|
| SQLSTATE | HY000 |
| Type | Server error |
| Versions | since 8.4.0 active |