He had two names before Mario. In Japan he was known as Mr. Video, and when the character arrived in America during the original Donkey Kong arcade games he was called Jumpman, a reference to his job jumping over barrels to rescue the damsel.
The name Mario came later, reportedly borrowed from Nintendo of America's landlord, and it stuck.