CHICAGO -- About the only thing the Los Angeles Dodgers haven't mastered in the NL West pennant race is the art of the comeback.
That is, until Thursday night at Wrigley Field.
The Dodgers trailed 4-1 heading into the seventh, but six of their eight hitters reached base against reliever Neil Ramirez with five hits and an error.
Los Angeles rebounded to win for only the second time this season -- against 54 losses -- when trailing after six innings.
"It honestly didn't look very good early," manager Don Mattingly said, "but at this point in the season, it doesn't matter what happens to you. If you walk away with a W, you feel good about it."
Cubs rookie second baseman Logan Watkins couldn't handle Juan Uribe's hard-hit grounder with one out. That allowed the first run of the rally to score on a fielder's choice. Los Angeles scored all the runs in the inning against Ramirez (2-3), but only one was earned.
The Dodgers moved 2 1/2 games ahead of idle San Francisco in the NL West.
"It wasn't the sharpest, that's for sure," Greinke said of his start. "I guess it is pretty darned big, because by the fifth inning it didn't look very good. To pull it out was almost like stealing a win."
Eight Dodgers had one RBI each.
"It happened really quickly," Cubs manager Rick Renteria said. "They hit a couple balls hard, but there were a couple plays we could have made."
Greinke failed to tie his career high with 16 wins. He struggled to find his rhythm early, and left after allowing nine hits and throwing 112 pitches.
Chicago starter Tsuyoshi Wada pitched five solid innings, allowing one run and five hits, and finishing with five strikeouts. He faced just nine hitters in the first three innings.
After the game, Wada, a 33-year-old left-hander from Japan, learned it was his final start of his first major league season
"Looking back, personally, I feel that I had a good year when you consider I didn't have any major league numbers," he said through a translator.
The Cubs took a 2-0 lead in the first when their first four hitters reached base, with Valbuena and Soler lining RBI singles.
The Cubs used four straight singles and a sacrifice fly by Olt to add two runs in the fifth. Among the hits was a grounder by Valbuena that slipped under Gordon's glove at second base.
Dodgers: SS Hanley Ramirez returned to the starting lineup after missing two games due to a strained right elbow. LHP Hyun-Jin Ryu was expected to rejoin the Dodgers on Thursday, but Mattingly wouldn't predict when he will return to the rotation. Ryu, 14-7 with a 3.38 ERA this season, received a cortisone injection in his sore left shoulder Monday.
Cubs: First baseman Anthony Rizzo (strained lower back) was available as a pinch hitter. Rizzo, second in the National League with 31 homers, missed 18 games before returning Monday and hitting a walk-off, ninth-inning shot in Chicago's 1-0 win over Cincinnati. Rizzo was rested Tuesday but started Wednesday. ... INF/OF Arismendy Alcantara (sprained right wrist) took part in batting practice but remains day to day.
Dodgers ace Clayton Kershaw (19-3, 1.70 ERA) tries to become the first 20-game winner in the majors this season -- and reach that mark for the second time in his career -- when he faces Chicago RHP Edwin Jackson (6-14, 6.09) on Friday. Kershaw was 21-5 in 2011.
Jackson (strained right lat) will make his first start since Aug. 20, an 8-3 loss at San Francisco in which he allowed seven runs in 2 2/3 innings.
DOWN THE STRETCH
As the Dodgers shorten their rotation for the postseason, it will include Kershaw, Greinke and ...
Mattingly didn't rule out Ryu being back in the rotation next week but wasn't specific. "It's going to be a few days, but we're going to get him back," Mattingly said. "Monday would be a stretch."
Ryu left his start last Friday in San Francisco after one inning, complaining of tightness and pain in his shoulder. He said the injury felt similar to one that landed him on the disabled list earlier this season. Tests revealed only inflammation.
Washington Nationals re-signing Josh Harrison to one-year contract
Landing in Washington as the 2020 regular season began, utility player Josh Harrison did enough to re-sign with the Nationals on a one-year contract for $1 million.
World Series 2020: 'Travel day' roundtable -- everything we learned in Games 1 and 2
The series is staying in Arlington, but the Dodgers and Rays have 24 hours to catch their breath. We answer the biggest questions so far in this Fall Classic.
The 10 greatest performers in World Series history
With the Dodgers back in the World Series, we recall the most legendary Fall Classic figures -- including both a Hollywood hero and an L.A. nemesis.
World Series 2020: How Brandon Lowe got his swing straightened out at exactly the right time
Tampa Bay's best hitter has been a mess most of the postseason, but getting in touch with his personal hitting coach changed everything.
World Series 2020: Inside Los Angeles Dodgers' failures in Game 2's big at-bats
As great as the Dodgers are, they won't end their title drought if they come up empty in high-leverage moments the way they did in Wednesday's loss to the Rays.
World Series 2020: Will Dodgers be OK if Dustin May, Tony Gonsolin don't contribute more?
Two of L.A.'s best young pitchers have struggled as their roles have shifted, which could be an issue if others don't pick up the slack.