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.