NEW YORK – Matt Harvey almost instantly began trying to wave off Mets Manager Terry Collins and a trainer after a line drive caromed off his knee in the ninth inning.

Stay away. He wanted the shutout.

And he certainly got it, the first one of his stellar young career, but there was no way Collins was not going to check out his prized pitcher.

Harvey proved himself with a warm-up toss, then he got All-Star Troy Tulowitzki to pop up a 91 mph slider for the final out of his first complete game, a four-hitter, and New York beat the Colorado Rockies 5-0 on Wednesday night.

“I don’t like when they come on the field at all so I was trying to shoo them off as quick as I could,” said Harvey, who had a big ice wrap on his knee. “I felt fine; I wanted to finish.”

Harvey (9-3) earned the shutout in his 33rd career start. He pitched nine innings of one-hit ball May 7 but New York lost in 10.

Not this time. Rookie third baseman Wilmer Flores helped make sure of that.

Filling in for the injured David Wright, Flores cleared the bases in the eighth against Manny Corpas with a three-run double for his first big league RBI.

“I think I was a little more relaxed,” Flores said a night after going 0 for 4 in his debut.

Omar Quintanilla and John Buck each had RBI singles off Jhoulys Chacin (10-6).

CUBS 5, PHILLIES 2: Donnie Murphy hit a tie-breaking three-run shot in the ninth inning for his second homer of the game, lifting Chicago at Philadelphia.

BRAVES 6, NATIONALS 3: Jason Heyward singled and Justin Upton doubled in a three-run eighth inning of visiting Atlanta’s 13th straight win.

PIRATES 4, MARLINS 2: Charlie Morton retired his final 11 batters over seven strong innings and host Pittsburgh maintained the best record in the majors.

AMERICAN LEAGUE

MARINERS 9, BLUE JAYS 7: Humberto Quintero’s two-run homer highlighted a six-run fifth inning, and Seattle rallied to beat visiting Toronto and spoil the return of left-hander J.A. Happ.

Happ made his first start since May 7, when he suffered a skull fracture and a sprained right knee after being struck behind the left ear by a line drive from Tampa Bay’s Desmond Jennings. Happ left the field on a stretcher, spent the night in the hospital and had three months of rehabilitation, primarily for the knee.

ROYALS 5, TWINS 2: The Kansas City bullpen picked up starter Danny Duffy when he labored in his return from Tommy John surgery as the Royals won at home.

Duffy struck out seven in 32/3 innings in his first outing since May 2012, but needed 93 pitches to get that far. He left trailing 2-1.

Louis Coleman (2-0) and three more Kansas City relievers managed to navigate the next 41/3 innings, and All-Star closer Greg Holland worked around a single in the ninth for his 30th save.

INTERLEAGUE

REDS 6, ATHLETICS 5: Jay Bruce hit a two-run homer and threw out a runner at the plate, helping Cincinnati beat visiting Oakland.

Corky Miller added two run-scoring doubles for Cincinnati, which won consecutive games for the first time since July 24 in San Francisco and July 25 in Los Angeles. Bruce also had a run-scoring grounder in the first.

ORIOLES 10, PADRES 3: Chris Davis hit his major league-best 41st homer in a four-run eighth inning to help Baltimore win at San Diego.