Chris Snyder hit a three-run home run and Jed Lowrie had a two-run shot to give the Houston Astros a 6-3 win over the New York Mets on Tuesday night.

Lowrie's homer, off Jonathon Niese, which hit the inside of the foul pole in left field in the first inning, got things going for the Astros who have won the first two games of this three-game series. The Astros had lost six consecutive series entering Monday.

Snyder pushed the lead to 5-0 in the next inning with his first home run of the season, which landed in the Crawford Boxes in left field. Brian Bogusevic and Justin Maxwell hit consecutive singles to start that inning and set up Snyder's shot.

Niese (2-1) allowed a season-high five runs and six hits in three innings. It was his shortest start since lasting just 2 2-3 innings on Sept. 29, 2010.

Niese entered the game 2-0 with a 2.81 ERA this season and was 1-1 with a 1.80 ERA in three career starts against Houston.

Houston starter J.A. Happ (2-1) allowed six hits and three runs with seven strikeouts in 6 1-3 innings, which was his longest outing of the year.

Relievers Wilton Lopez and Wesley Wright combined to allow one hit in 1 2-3 innings before Brett Myers threw a perfect ninth for his sixth save.

Reliever Miguel Bautista walked Maxwell in the sixth inning, but Snyder grounded into a double play. Happ singled before Bautista walked Jose Altuve. He was replaced by Ramon Ramirez, who walked Lowrie.

His bases-loaded walk of J.D. Martinez gave Houston an insurance run and made it 6-3. The Mets finally got out of that inning on a fly out by Carlos Lee.

Justin Turner walked with two outs in the fifth inning and scored after consecutive singles by David Wright and Scott Hairston to cut Houston's lead to 5-3. Happ got out of that inning by striking out Ike Davis after a short coaching visit to the mound.

Happ allowed just one hit — a single by Davis in the second — through the first three innings.

Turner doubled to start the fourth inning and Hairston walked with one out. A two-out single by Andres Torres scored Turner to make it 5-1. Josh Thole followed with a RBI single to center field to get New York within 5-2.

Happ struck out pinch-hitter Lucas Duda to limit the damage.

NOTES: Mets starter Mike Pelfrey had season-ending Tommy John surgery on his right elbow on Tuesday. The team said the surgery, done by Dr. James Andrews, went well. ... Houston starter Kyle Weiland had arthroscopic surgery for an infection in his right shoulder on Tuesday. Houston general manager Jeff Luhnow said he isn't sure how long Weiland, who has been on the disabled list since Friday, will be out. ... Mets catcher Mike Nickeas stayed at the team hotel on Tuesday with the flu. The Mets said they might call up a catcher to fill in while he recovers. ... Duda was out of the starting lineup for the second game because of flulike symptoms, but pinch-hit in the fourth inning. ... Houston CF Jordan Schafer got a day off after experiencing soreness in his left side. Manager Brad Mills doesn't think the problem is serious and expects him to be back in the lineup Wednesday. ... The series wraps up on Wednesday when Houston left-hander Wandy Rodriguez faces Chris Schwinden.