I have created tables in MySQL Workbench as shown below :
ORDRE table:
CREATE TABLE Ordre ( OrdreID INT NOT NULL, OrdreDato DA
The problem occurs because you set the foreign key in child table after you insert some data in the child table.
Try removing all the data from child table, then set the foreign key and afterwards add/insert the data in table, it will work.