When one scoring opportunity was wasted, another one was waiting just around the corner for the A’s on Friday night.

Coco Crisp finally put an end to the frustration, delivering the go-ahead single with two outs in the eighth inning and leading the A’s to a 4-3 victory over the Boston Red Sox.

Red Sox reliever Andrew Miller hit Kyle Blanks and Alberto Callaspo on back-to-back pitches in the eighth to put two runners aboard. With two outs, Crisp -– who entered as a pinch hitter in the seventh -– worked the count to 2-2 and then lined an opposite-field single to right that scored Blanks, who hustled around from second and came up hobbling after scoring (Miller’s pitch got him in the left leg).

Walks and hit batsmen were a theme on this night, but the A’s didn’t take advantage of earlier scoring opportunities. They pulled through, however, and they’ve taken the first two of this four-game series against the defending World Series champs.

Left-hander Brad Mills went just four innings in his A’s debut, walking four and allowing three runs.

Josh Donaldson connected for a three-run homer in the first, his first long ball since June 6.