Harry Kane scored his first Bundesliga goal of the season as Thomas Muller became Bayern Munich's all-time record appearance holder in the win over Freiburg.
The England captain, who scored 36 times in Germany's top-flight last season, sent goalkeeper Florian Muller the wrong way from the penalty spot in the 38th minute after Christian Gunter handled inside the penalty area.
Muller, 34, came on as a second-half substitute for his 710th competitive appearance, passing former German goalkeeper Sepp Maier's record of 709 in all competitions.
And Muller marked the occasion by scoring his 150th Bundesliga goal to double the lead in the 78th minute and make it two wins out of two for Bayern in the league under new manager Vincent Kompany.
He is the only player to score a goal in Europe's top five leagues in each of the last 16 seasons, a run starting in 2009-10.
Freiburg substitute Lucas Holer missed a penalty in stoppage time when he blazed over the bar.
The hosts dominated possession at the Allianz Arena and went close to scoring before Kane's opener.
Serge Gnabry's deflected shot looked to be heading for the bottom corner before it was cleared, while Kane headed narrowly wide after a cross by Michael Olise, who joined from Crystal Palace in July.
Kane's penalty put Bayern in control before 12-time Bundesliga winner Muller, who made his senior debut for the club in 2008, made sure of the points in Kompany's first home league game in charge.
Portugal midfielder Joao Palhinha also made his league debut for Bayern as a substitute after joining from Fulham in July.
Palhinha gave Freiburg the chance of a late consolation when he handled Ritsu Doan's volley inside the penalty area, but Holer missed from the spot.
Bayern's next game is away to newly-promoted Holstein Kiel on 14 September.