Plato is the earliest important educational thinker. Education is, of course, a relatively minor part of his overall philosophical vision, but it is an important one. He saw education as the key to creating and sustaining his Republic. He advocated extreme methods: removing children from their mothers' care and raising them as wards of the state, with great care being taken to differentiate children suitable to the various castes, the highest receiving the most education, so that they could act as guardians of the city and care for the less able. Education would be holistic, including facts, skills, physical discipline, and rigidly censored music and art.
For Plato the individual was best served by being subordinated to a just society. Plato's belief that talent was distributed non-genetically and thus must be found in children born to all classes moves us away from aristocracy, and Plato builds on this by insisting that those suitably gifted are to be trained by the state so that they may be qualified to assume the role of a ruling class. What this establishes is essentially a system of selective public education premised on the assumption that an educated minority of the population are, by virtue of their education (and inborn educability), sufficient for healthy governance.
Plato should be considered foundational for democratic philosophies of education both because later key thinkers treat him as such, and because, while Plato's methods are autocratic and his motives meritocratic, he nonetheless prefigures much later democratic philosophy of education. This is different in degree rather than kind from most versions of, say, the American experiment with democratic education, which has usually assumed that only some students should be educated to the fullest, while others may, acceptably, fall by the wayside.