Hard to believe mysql doesn't include that data in one of it's dump formats.
What's the point of having a dump format that you can't use to restore your database properly?
Does it have a health warning advising that it's not a proper dump?
You get this:
<field Field="course_id" Type="int(10)" Null="NO" Key="MUL"/>
But not this: CONSTRAINT `fk_courses_offered_class_details`
FOREIGN KEY (`course_id`)
REFERENCES `courses_offered` (`id`)