BALTIMORE - Wei-Yin Chen slapped his glove after he walked off the mound Tuesday, visibly unsatisfied with his first game in the major leagues.

A day earlier, the Taiwanese left-hander had said that winning was his primary aim now that his initial spring training gave way to the regular season and by the time manager Buck Showalter had taken the ball, that was no longer possible.

Chen experienced a little bit of everything in his Baltimore Orioles debut, from a nerve-fueled rocky start to a commanding stretch in the middle to a rough finish which allowed the New York Yankees to erase a three-run deficit in the sixth.

Six innings later, New York finished the come-from-behind win on Raul Ibanez's ground-rule double off Pedro Strop with two outs in the 12th for a 5-4 win before 24,659 at Camden Yards.

Clay Rapada (1-0) earned the win and Mariano Rivera tossed a scoreless 12th for his first save to end a 4-hour, 38-minute contest. Strop (0-1) took the loss for the Orioles (3-2), who dropped their second straight after a weekend sweep.

In his debut, Chen gave up four runs (two earned) on seven hits and a walk in 5 2-3 innings.

Despite a no-decision, much of the attention was on Chen with 15 media members from nine Taiwanese outlets in attendance. The game aired live in the 26-year-old's home country on three stations with the local time of first pitch at 7 a.m.

Chen started slow, allowing his first batter, Derek Jeter, to crush a solo homer to center and his second, Nick Swisher, to scorch a double to right-center. The leadoff shot was Jeter's 25th career leadoff blast, passing Rickey Henderson for No. 1 in Yankees history.

Two batters later, Chen hit Alex Rodriguez with a pitch, but he settled down thereafter.

He retired the last two of the first to start a streak of 12 straight Yankees retired, recording all six of his strikeouts during that run while also benefiting from a few hard-hit outs.

In the sixth, he came a bit undone, letting New York (2-3) come back from down 4-1.

The Yankees loaded the bases with one out before cutting the Orioles' lead to 4-2 on an Andruw Jones sacrifice fly. The Yankees then pulled to within one on a Mark Reynolds error and drew even on Brett Gardner's two-out RBI single to right, which ended Chen's night.

The Orioles gave Chen a 4-1 lead after five frames with plenty of aid from the Yankees. Baltimore needed just four hits to build its lead, while New York chipped in with an error and a historic five wild pitches from starter Freddy Garcia.

Not only did Garcia set a career high with that lack of control, he matched a Yankees club record for most wild pitches in a game and finished one off the major league record.

Garcia, who had thrown just four wild pitches in each of the last two seasons, became the first pitcher to throw five in a game since Philadelphia's Ken Howell on April 5, 1989.

Garcia threw his first two wild pitches during Nick Johnson's at-bat in the first, scoring the Orioles' second run of the inning in the process. An error by catcher Russell Martin let Baltimore's third run score in the fourth and Garcia's fifth wild pitch brought home the Orioles' last run, way back in the fifth.

The teams stayed tied at 4-4 until the third extra inning despite several chances to move ahead.

The Yankees had a chance to take the lead in the seventh, when reliever Matt Lindstrom hit Nick Swisher on the foot and Robinson Cano doubled to left. But left fielder Endy Chavez, shortstop J.J. Hardy and catcher Matt Wieters connected for a perfect relay, throwing Swisher out at the plate.

The Orioles then stranded a runner on second in the eighth and the Yankees did so in the ninth. Baltimore went on to strand the bases loaded in the ninth.The Yankees left a man on second in the 11th and finally came through in the 12th after the Baltimore's bullpen combined to hold them scoreless over 5 1-3 innings in relief of Chen.

Cano started the 12th with a double off Strop, advanced to second on a groundout and then scored three batters later on Ibanez's two-bagger. The Orioles went down easily in the bottom of the frame to end it.