Bochum defeated Bayern Munich by two goals to three at the Allianz Arena in a match in which the Bavarian club celebrated 125 years of history.