MySQL error code
MySQL error 1452
MySQL server error 1452 is ER_NO_REFERENCED_ROW_2, reported with SQLSTATE 23000.
Cannot add or update a child row: a foreign key constraint fails%s
| Error | 1452 |
|---|---|
| Name | ER_NO_REFERENCED_ROW_2 |
| SQLSTATE | 23000 |
| Group | Server errors |
In other databases
Source: MySQL 8.4 Error Reference