Mexico finally exorcised their knockout-stage demons by beating Ecuador 2-0 at the World Cup on Wednesday.