Anderson settled in after giving up two early solo homers and the Brewers rallied for a 5-2 victory over the Cincinnati Reds on Monday night.
"This is the big leagues, guys are going to make you pay for mistakes and they really did for those two pitches," said Anderson, who allowed multiple homers for the ninth time this season. "Homers have been kind of a big thing for me, a lot of solo homers. The first inning has been a big thing for me this year, but today I felt like I kind of found something as the game went on."
Shaw's two-run homer off Homer Bailey put the Brewers up 3-2 in the sixth. Jesus Aguilar singled to open the inning and Shaw followed with his 25th homer, lining an 0-2 pitch into the right-field seats.
"I was trying to throw a fastball up and in (on the homer), the same pitch he broke his bat on two pitches before that," Bailey said.
Anderson, pitching on seven days' rest, entered tied for the National League lead with 24 homers allowed and gave up second-inning solo shots to Eugenio Suarez and Phillip Ervin as the Reds took a 2-0 lead. Anderson then retired the final 14 hitters he faced.
"When Chase is leaving some balls in the middle, he's getting hurt on them, for sure," Brewers manager Craig Counsell said. "But, I thought he made some really quality pitches after that. He had better fastball command today, curve ball was better today. He put it together after that really well."
Bailey (1-11) kept the Brewers off the scoreboard until Yelich's 20th homer, a one-out solo shot in the fifth that made it 2-1. Bailey, who has not won since May 12, allowed three runs on five hits in six innings, striking out five and walking one.
"He has not been fortunate, that's for sure," Reds manager Jim Riggleman said. "The main thing is he is throwing the ball well and getting us deep in the game and not wearing out the bullpen. He's doing his part there."
Suarez opened the second with his 28th homer, sending a 1-1 pitch over the wall in left-center. One out later, Ervin drove a 1-0 pitch to left for his fourth.
Anderson now has allowed 26 homers in 135 1/3 innings, after giving up just 14 in 141 1/3 innings last season.
"He gave up those two homers in the second, but outside of that, he pitched really well," Shaw said. "His curveball was really good today."
UPON FURTHER REVIEW
Lorenzo Cain beat out an infield single to short with one out in the seventh The Reds challenged, but the call was upheld after a review estimated at 1 minute, 40 seconds.
Reds: OF Scott Schebler (right shoulder), who just completed a seven-game rehab stint at Triple-A Louisville, including six as DH, began another rehab assignment Monday at Double-A Pensacola.
Brewers: RHP Matt Albers, on the 10-day DL (left hamstring strain), is back with team and could be activated soon. He pitched three scoreless rehab outings with Double-A Biloxi, including one Saturday. "He's ready. We weren't planning on activating him today unless there was a need," manager Craig Counsell said. "We'll kind of go with that for the next couple of days, depending on need. ... RHP Joakim Soria, also on the DL (right groin), will pitch off the mound on Tuesday and face hitters.
Reds: RHP Sal Romano (7-10, 5.31 ERA) is 0-5 in five career starts against the Brewers, including 0-3 at Miller Park. Romano lasted just 1 2/3 innings in his last start, allowing six runs on seven hits in an 8-1 loss to Cleveland.
Brewers: RHP Junior Guerra (6-8, 3.73) makes his 24th start. In his last outing, allowed seven runs -- six earned -- on nine hits in 3 2/3 innings in an 8-4 loss to the Cubs. He is 0-1 with a 5.60 ERA in three starts in August.
More AP baseball: https://apnews.com/tag/MLBbaseball and https://twitter.com/AP-Sports .
Marcus Semien had three hits and a career-high five RBIs, Stephen Piscotty homered and drove in four runs and the Oakland Athletics hammered the Los Angeles Angels 21-3 on Thursday.
Nick Martini clocks his first career home run followed by Chad Pinder's 12th of the year and the A's cruise to a 21-3 win over the Angels.
Mike Trout deposits a 1-1 pitch deep into the left-field seats for his 36th home run of the season.
Stephen Piscotty breaks the game open with a three-run home run to left to put the A's up 5-1.
Billie Jean King grew up a Dodgers fan in Long Beach, California, and now has been named a part-owner of the team.
Don Mattingly has one season to go on a four-year contract he signed when he joined the Miami Marlins for the 2016 season.