ST. LOUIS -- Josh Bell put on a show for his mom on Mother's Day.
Adam Frazier added a two-run, tiebreaking pinch-hit double as the Pirates scored five times in the seventh inning and twice in the eighth to rally from a 6-3 deficit.
Pittsburgh has won six of eight, including the final three of its four-game series at St. Louis.
Pirates manager Clint Hurdle had warned Bell that he'd better come through.
"Jokingly, before the game, I said, `You need to do something special for Myrtle," Hurdle said. "He said, `Yeah, I've got this."
Bell went 4-for-4, extending his hitting streak to a major league-best 12 games. He reached base five times, including an intentional walk, and is 20-for-49 (.408) during the streak with four homers and 16 RBI.
"It was awesome," Bell said. "It's one of those scenarios where I know my mom would be just as excited to watch me play if I go 0-for-4. To be able to celebrate the win with (her) watching, it's unbelievable."
Myrtle lives in Louisiana and travels to see her son play at least once a month.
"His work ethic is one of the best I've ever seen," Pittsburgh infielder Kevin Newman said. "He's in the cage all the time. He works his tail off on defense. I couldn't be any happier for him."
Bell's three-run homer off John Brebbia (1-2) in the seventh tied the game at 6-6. Francisco Cervelli, who had three hits, followed with a double, Melky Cabrera drew a walk and then Frazier smacked a two-run double to right.
Chris Stratton (1-2), acquired from the Los Angeles Angels on Saturday, worked a scoreless sixth for the win.
Brebbia (1-2) gave up three runs on three hits in one inning.
"When you make bad pitches to guys who are taking good swings, it's not going to be good," Brebbia said.
Colin Moran added two-run double in the eighth to conclude the scoring.
After the Pirates scored three times in the first, Goldschmidt hit a two-run homer off Steven Brault in the bottom half to start a four-run outburst.
Martinez, who went 3-for-5, had a two-run homer in the third. Bryan Reynolds made a leaping catch in the ninth to rob him of a possible second homer.
St. Louis starter Dakota Hudson gave up three runs on nine hits over six innings.
Brault, making his second start of the season, lasted 3 2/3 innings. He gave up six runs on nine hits.
Goldschmidt, who was 9-for-17 in the series, snapped an 18-game streak without a home run.
"We obviously haven't won as many games as we've wanted to the last 10 or 11 games," Goldschmidt said. "The focus is just to go out there and win the next one."
The crowd was announced at 48,555, the largest in the history of the new Busch Stadium, which opened in 2006. It was St. Louis' fourth sellout of the season.
ON THE WAY BACK
Cardinals right-hander Carlos Martinez threw a scoreless inning on Friday for Triple-A Memphis. He has not given up a run in three rehab appearances covering three innings. Martinez has not pitched in the majors this season because of a right shoulder cuff strain.
Pirates: RHP Nick Burdi was transferred to the 60-day injured list. He has pain in his right biceps.
Cardinals: INF Matt Carpenter was held out of the starting lineup for a day of rest. He walked as pinch-hitter in the eighth.
Pirates: RHP Nick Kingham (1-0, 5.94 ERA) will start in the opener of a three-game series at Arizona on Monday night. Kingham, who has nine appearances as a reliever and one as a starter this season, is 5-7 in 16 lifetime starts.
Cardinals: RHP Jack Flaherty (3-3, 4.32) will face Atlanta RHP Mike Foltynewicz (0-2, 5.94) as the teams begin a three-game series Tuesday. The Cardinals were shut out in each of Flaherty's last two starts.
More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports
Rangers' Shin-Soo Choo unsure of future after '20, 'still love this game'
Veteran Shin-Soo Choo, who is entering the final season of his deal with the Rangers, has genuine confidence that he can play at a high level for another couple of years, or more, after 2020.
Nationals' Carter Kieboom using years of tips to guide chase for third-base job
If, as he hopes, and the Nationals hope, Carter Kieboom earns a job this spring as the reigning World Series champions' starting third baseman, he will do so with the help of years' worth of ideas typed into the Notes app on his cellphone.
Christian Yelich motivated after last season cut short
Christian Yelich was driven last year by a desire to improve on the performance that earned him the NL MVP award in 2018.
Stanton: I'd hit 80-plus home runs if I knew the pitch
Giancarlo Stanton says the Astros should be stripped of their 2017 title, and claims he would have hit 80-plus home runs that year if he knew what pitches were coming.
Bryant wants to remain with Cubs
Kris Bryant weighs in on his future with the Cubs, saying he can't imagine himself anywhere else.
Will Bryant remain a Cub long term?
Pedro Gomez reports on Kris Bryant's desire to remain with the Cubs for the long term.