ERROR 1452: Cannot add or update a child row: a foreign key constraint fails
Note: I am trying to learn database. So I don’t know anything about this Foreign Keys. Mass: Field Type Null Key Default Extra id int(11) NO PRI NULL auto_increment name varchar(20) NO mass_unique_id varchar(25) NO created_at date NO current_time() Mass_Conf: Field Type Null Key Default Extra mass_id int(11) NO FK meal_conf NO NULL Here is