/

After rough start, Cain stymies Marlins to earn first victory

AP

Matt Cain’s winless drought is over, even though the Giants’ three-time All-Star pitcher is still struggling with some of his mechanics.

After nearly seven weeks of frustration, Cain isn’t about to complain.

Buster Posey hit a go-ahead double as part of a three-run fifth inning and San Francisco held on to beat the Miami Marlins 6-4 on Thursday night.

Cain (1-3) earned his first win of the season despite another shaky outing at AT&T Park. The former San Francisco ace gave up two home runs and allowed all the Marlins’ scoring in the first three innings before settling down to pitch into the eighth.

“He didn’t cave in,” Giants manager Bruce Bochy said.

He added: “It says a lot about him. Good for him. It’s got to be a good feeling.”

Cain hadn’t won since Aug. 17, 2013 — a string of 11 consecutive starts.

It looked like the drought might continue after Cain was nearly knocked out of the game in the third inning, but he stuck around long enough to get the win in his second outing since slicing the index finger on his right hand.

After giving up two home runs to the first seven batters he faced, Cain settled down and allowed six hits over 7⅔ uneven innings. He struck out seven and walked three batters.

Prior to the game, Masanori Murakami threw out the first pitch as part of “Japanese Heritage Night” festivities.

Murakami became the first Japanese to play in the majors when he pitched for the Giants in 1964-65.

Reds 5, Padres 0 (1st)

Padres 6, Reds 1 (2nd)

In Cincinnati, Rene Rivera hit the first of San Diego’s three homers and Tyson Ross allowed three hits in seven innings, leading the Padres to a victory and a split of their doubleheader with the Cincinnati.

Johnny Cueto pitched a three-hitter in the opener.

Brewers 4, Pirates 3

In Milwaukee, Khris Davis hit a game-ending two-run single and the Brewers rallied in the ninth off closer Mark Melancon.

Cardinals 5, Cubs 3

In St. Louis, Michael Wacha pitched seven innings and drove in two runs for the hosts.

INTERLEAGUE

Yankees 1, Mets 0

In New York, Alfonso Soriano’s RBI double in the seventh broke up a scoreless duel at Citi Field between pitchers making their major league debuts.

Rookie reliever Dellin Betances struck out six in a row as the Yankees earned a split of this year’s interleague series between crosstown rivals.

AMERICAN LEAGUE

Twins 4, Red Sox 3 (10)

In Minneapolis, Aaron Hicks delivered the game-winning single in the bottom of the 10th and Phil Hughes struck out eight in six innings to help the Twins beat Boston.

Blue Jays 4, Indians 2

In Toronto, Edwin Encarnacion hit two homers, Juan Francisco also connected and the Blue Jays gave manager John Gibbons his 400th career win.

Orioles 2, Royals 1

In Kansas City, Nelson Cruz homered and Baltimore snapped a four-game losing streak to remain first in the AL East.

Norichika Aoki went 0-for-4 for the Royals in the loss.

Angels 6, Rays 5

In Anaheim, Mike Trout greeted Brad Boxberger with a three-run walkoff homer to cap a four-run ninth and give Los Angeles a win over Tampa Bay.