Optometrist - A primary care doctor of the eye (performs standard eye exams, prescribe glasses/contacts, treat basic ocular diseases, etc.) that must attend a specialized post-graduate doctor of optometry school (4-5 years).
Ophthalmologist - A specialized physician of the eye (often surgically) that must attend a standard post-graduate medical school and residency (8+ years).