Pompey saw off MK Dons at Fratton Park to secure safe passage in the Emirates FA Cup.
The 3-2 success on the south coast means they take their place in Monday evening's third round draw.
Darragh Burns has given the visitors a lead against the run of play, but Reeco Hackett soon levelled.