Former Brewers ace Zack Grienke (2-1) took his first loss of the season in his first appearance at Miller Park since he was traded last season.
Grienke, whose career record at Miller was an unblemished 15-0 until Tuesday, was charged with five runs on nine hits before being lifted with no one out in the fifth inning.
The Brewers overcame a 2-1 deficit in the fifth. Carlos Gomez highlighted the rally with a two-run ground-rule double.
Mike Fiers (1-2) picked up the win in relief of Hector Burgos. Jim Henderson struck out the side in the ninth for his ninth save.
Grienke had two hits and an RBI for the Dodgers. Nick Punto also drove in a run but Los Angeles left 14 runners on base.