LOS ANGELES (AP) – Corey Seager hit a go-ahead, two-run homer in the eighth inning, when the Los Angeles Dodgers went deep four times to rally past the San Diego Padres 11-9 on Wednesday night.

Los Angeles trailed 9-6 before Max Muncy and AJ Pollock began the onslaught by going back-to-back off Emilio Pagán (4-3). With one out, Cody Bellinger launched a shot to right field. Pinch-hitter Justin Turner doubled to deep left and scored on Seager’s shot to right with two outs.

READ MORE: LA County Sheriff's Deputies Armed With Cleaning Supplies Help 86-Year-Old La Mirada Woman Living In Filthy, Unsafe Conditions

Many fans had already left Dodger Stadium, but those who remained were on their feet in the eighth, chanting and cheering as the outburst sent the crowd into a frenzy.

Mookie Betts hit a solo shot in the seventh to begin the comeback, and Pollock had a two-run homer in the first.

The Dodgers remained two games behind NL West-leading San Francisco with four to play in the regular season. The Giants beat Arizona 1-0.

Los Angeles blew leads of 4-0 and 5-1 on a night when Max Scherzer struggled and got his second straight no-decision.

David Price (5-2) pitched the eighth to earn the win. Kenley Jansen struck out the side in the ninth for his 37th save.

The late power burst was reminiscent of a Sept. 18, 2006, game between the teams. The Dodgers hit four consecutive homers in the bottom of the ninth to tie it, and

Nomar Garciaparra’s two-run homer in the 10th gave them an 11-10 victory that put Los Angeles back in first place.

Garciaparra was at the ballpark Wednesday night. Dodgers manager Dave Roberts was a player on that 2006 Padres team.

READ MORE: 'Survivor 41' Episode 6: The Merge Part 1 

Scherzer got knocked around in his roughest start since he joined the Dodgers from Washington at the trade deadline on July 30.

The three-time Cy Young Award winner gave up six runs — five earned — and a season-high 11 hits in 5 1/3 innings. The right-hander, whose 2.28 ERA was the lowest in the NL coming in, struck out four and walked none. He allowed two homers, just the sixth time he’s given up more than one in a game this season and the third time the Padres have done it to him.

San Diego’s Victor Caratini went 3 for 4 and homered off Scherzer. Former Dodger Manny Machado launched a two-run shot in the third to leave the Padres trailing 5-3.

The Dodgers made two errors in the fourth, when the Padres tied it 5-all. Third baseman Chris Taylor’s fielding error would have been the second out of the inning. Seager booted a ball at shortstop that allowed Wil Myers to score the tying run.

Tommy Pham had an RBI double and Trent Grisham added a two-run single for a 9-5 lead in the seventh, when reliever Brusdar Graterol faced four batters, giving up two walks, two hits and three runs.

The Dodgers lost hot-hitting outfielder Gavin Lux in the sixth. He hit the center-field wall head on and tumbled over while chasing Myers’ triple. Roberts and a trainer came running out to the warning track to check on Lux, who appeared to be holding his right shoulder. Lux came in batting .383 since being recalled from Triple-A two weeks ago.

Scherzer had issues for the second straight start. He didn’t look sharp at Colorado last Thursday, allowing five runs and six hits in a no-decision. This time, he didn’t get his second strikeout until the fifth, when he had his first 1-2-3 inning of the game.

The Dodgers led 4-0 in the first on Trea Turner’s RBI double, Muncy’s RBI single and Pollock’s two-run homer. Seager added an RBI double in the second for a 5-1 lead.

MORE NEWS: Regina King Places Handprints, Footprints Outside TCL Chinese Theatre In Hollywood

 (© Copyright 2021 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)