Mayrhofer was born in Linz and studied Indo-European and Semitic linguistics and philosophy at the University of Graz, where he received his Ph.D. in 1949.
Mayrhofer naceu en Linz e estudou lingüística indoeuropea e semítica e filosofía na Universidade de Graz, onde recibiu o seu Ph.D. en 1949.