Boys' education
Typically, boys were home-schooled by their mother until the age of 6 or 7. They then attended a public school, usually up until the age of 14. After that, students attended a higher school for some time, and then usually had military training for two years. In school children learned mathematics, science, and drama. They also learned how to play an array of musical instruments such as the lyre or flute. The schools of ancient Megara were famed all around Greece and have been compared to those of Athens.
Girls' education
Girls in ancient Megara were home-schooled, and generally did not go to a public school. Instead, they were taught my their mothers or servants on how to run a household.
Famous Megarian schools
Perhaps one of Megara's most famous schools was the Megarian School of Philosophy, founded by Euclid of Megara (not to be confused with Euclid of Alexandria, the mathematician). Euclid was a devote follower of Socrates, and taught to believe in a single good and to incorporate logic into his pupils' thinking. A handful of his followers developed logic tho such an extent that they founded another school, the Dialectical School. This school's work in logic has played a major role in the way philosophers view the world and issues to this day.