SAN DIEGO (AP) The Padres' Travis Jankowski was a pest to the Brewers, which helped make winners out of San Diego on Monday night.
Jankowski had three hits and two walks and San Diego snapped Milwaukee's four-game winning streak, 7-3.
''Get on base five times in the leadoff spot, that's what you're looking for,'' Padres manager Andy Green said. ''He's a game-changer on the base paths. The story of the game is obviously Travis Jankowski.''
The Padres center fielder said he needed a game like Monday's.
''Coming back from the break I wasn't playing my best baseball,'' he said. ''So getting that game and getting a couple of hits and getting the confidence back is huge for me.''
Yangervis Solarte drove in two runs, with his second hit being the key blow during a five-run fifth.
Carlos Villanueva (2-2) pitched 2 2/3 innings in relief of starter Jarred Cosart, allowing two runs and two hits. Villanueva was the first of four Padres relievers.
Milwaukee's Jimmy Nelson (6-10) ran into trouble in the fifth when the Padres went ahead 6-2 and exited with four innings pitched and eight hits allowed. It was the second time San Diego beat Nelson this season, and overall he's lost seven of his last eight decisions.
''There aren't words that can describe how frustrated I am,'' Nelson said. ''I'm definitely feeling every negative emotion you can think of.''
In the fifth, Alexi Amarista had an RBI single, Solarte added a two-run single, Ryan Schimpf tripled in Solarte and Adam Rosales' sacrifice fly scored Schimpf.
''(Nelson) just didn't have his best stuff tonight, that's for sure,'' Brewers manager Craig Counsell said.
Amarista left after advancing to third on Wil Myers' double. Amarista strained his left hamstring - he missed 27 games this year with an injured right hamstring.
Milwaukee pulled within 6-3 on Chris Carter's 25th homer of the season.
The Brewers seized a 2-1 advantage on Hernan Perez's homer in the fifth, a two-run shot off Villanueva which scored Scooter Gennett after Gennett's single extended his hitting streak to a career-high 11 games.
Perez's 381-foot home run was on an 88-mph fastball that just cleared the right-field fence.
Cosart made his Padres debut after Friday's seven-player trade with the Miami Marlins. He got off to a shaky start, walking his first two batters before wiggling from the jam. In the second and third, he was supported by double plays in each inning to escape damage.
But Cosart's lack of command contributed to him lasting but 3 1/3 innings. He didn't allow a run and just one hit, but he walked six batters, hit another one and was gone after 77 pitches.
''We ultimately didn't get the hit to make him pay for it,'' Counsell said.
Top Brewers prospect Orlando Arcia will be called up Tuesday night to start at shortstop. Jonathan Villar will slide to third base to make space. The 21-year-old Arcia is hitting .267 with eight homers and 15 stolen bases in 100 games with Triple-A Colorado Springs this season.
Brewers: OF Ryan Braun (sore right side) remained out of the starting lineup but is expected to start on Tuesday.
Padres: OF Alex Dickerson (right hip contusion) was able to pinch-hit and could start later in the series.
Brewers: RHP Zach Davies (8-4, 3.59) was sensational in four July starts with three wins, a 1.71 ERA, and a 17-4 strikeout-to-walk ratio. Davies has won one of his two career starts against the Padres.
Padres: RHP Luis Perdomo (5-4, 6.89) is coming off two road wins and has allowed three earned runs or less in his last seven starts. It is second start against the Brewers, pitching to a no-decision when giving up two runs and four hits in two innings on May 14.