BOSTON — Logan Schafer’s double scored Khris Davis in the 11th inning to lead the Milwaukee Brewers to 7-6 win over the Boston Red Sox on Saturday night.

The Brewers blew a slew of opportunities late in the game, including leaving the bases loaded in the 10th, but still managed to take their second straight over the defending World Series champions.

Davis doubled into the right-field stands off Burke Badenhop (0-1) with one out and Schafer drove him in with a double to the left-center gap.

Closer Francisco Rodriguez struck out the side in the bottom half of the inning for his second save of the season.

Right-hander Tyler Thornburg (1-0) picked up the win with a perfect 10th.

First baseman Mark Reynolds and center fielder Carlos Gomez homered, and Davis added four hits for Milwaukee. Third baseman Aramis Ramirez and shortstop Jean Segura had three hits apiece.

Designated hitter Mike Napoli hit a three-run homer for Boston, but it wasn’t enough to prevent the Red Sox from dipping below .500 for the first time since the final game of the 2012 season.

The Brewers scored six times in the first three innings but led just 6-5 after Napoli’s third-inning homer.

Reliever Chris Capuano kept Boston in the game, retiring five straight between the fifth and sixth, and the Red Sox took advantage.

Shortstop Xander Bogaerts doubled off reliever Jim Henderson to begin the bottom of the sixth, and tied the game when Jonathan Herrera’s grounder off reliever Zach Duke was misplayed by Segura at shortstop.

Boston had just one hit the rest of the way.

Segura singled with one out in the first, moved to third on a ground out and scored on a sharply hit ball by Ramirez that glanced off the glove of Bogaerts.

Reynolds’ first homer as a member of the Brewers made it 2-0 in the second and three batters later, Gomez tacked on another with his second shot of the season.

Boston broke through in the bottom half when Bogaerts singled, advanced to third on a double by left fielder Jonny Gomes and scored on catcher A.J. Pierzynski’s groundout. An RBI single by Herrera cut it to 3-2.

But starter Clay Buchholz couldn’t solve the Brewers, who scored three more times in the third.

Designated hitter Jonathan Lucroy doubled and came home on a single by Ramirez, and second baseman Scooter Gennett’s double plated Ramirez and Davis, who also singled.

Napoli cut it to 6-5 with one swing in the bottom of the third.

After center fielder Grady Sizemore walked and second baseman Dustin Pedroia reached on an error, Napoli drove a 2-1 pitch from Brewers starter Wily Peralta to straightaway center for his second homer of the year.

NOTES: OF Ryan Braun did not play due to a right thumb injury and remains one home run shy of tying Geoff Jenkins (212) for third place on the Brewers’ career home runs list. … Red Sox DH David Ortiz had the night off before pinch-hitting for RF Jackie Bradley Jr. in the ninth. … Boston 3B Will Middlebrooks was a late scratch with a right calf cramp, and was replaced by Jonathan Herrera. … Milwaukee RHP Yovani Gallardo (1-0, 0.00 ERA) will face Boston LHP Jon Lester (0-1, 2.57) in the finale of the three-game series Sunday.