Alex Rodriguez inched closer to Willie Mays with two more home runs, and the New York Yankees beat the Tampa Bay Rays 5-4 on Friday night.

Rodriguez hit a solo shot in the second, driving an 0-1 pitch from Nathan Karns an estimated 471 feet to center. He connected again in the sixth, belting a two-run drive to left against Ernesto Frieri for homer No. 658 - just two shy of Mays for fourth place on baseball's career list.

Rodriguez, who missed last season because of a drug suspension, also had a tiebreaking RBI single in the eighth against Kevin Jepsen (0-1). Brett Gardner, who came in to run for Carlos Beltran after his leadoff single, stole second before Rodriguez singled to center with two out.

It was Rodriguez's first multihomer game since May 23, 2012, and No. 61 for his career. He also moved past former teammate Derek Jeter for ninth place on the runs scored list with 1,925.

After Dellin Betances (2-0) threw a scoreless inning, Andrew Miller got the final four outs for his third save.

Allan Dykstra and Logan Forsythe hit consecutive homers in the fourth to give Tampa Bay a 4-2 lead. Dykstra had been 1 for 15 this season before hitting a three-run drive off Adam Warren for his first major league homer.

Stephen Drew put the Yankees up 2-0 in the fourth with his 100th career homer.

Karns allowed two runs and two hits in five innings. He struck out seven and walked four.

Warren gave up four runs and six hits over four innings.

Rays third baseman Evan Longoria went 1 for 3 and walked once while serving as the designated hitter. He left Thursday night's game at Toronto in the eighth inning with a bruised left hip after getting hit by a pitch.

TRAINER'S ROOM

Yankees: Gardner (right wrist) was out of the starting lineup for the third straight game. ... RHP Ivan Nova (elbow surgery) threw 20 pitches in his second batting practice session. ... INF-OF Jose Pirela (concussion) hit off Nova.

Rays: RHP Alex Cobb (right forearm tendinitis) said he might throw off a mound in seven to 10 days. ... Closer Jake McGee (right elbow surgery) is nearing the start of a minor league rehab assignment.

UP NEXT

Yankees: Saturday starter Masahiro Tanaka (1-1, 7.00 ERA) has lasted just four and five innings in his first two starts.

Rays: RHP Jake Odorizzi (2-0, 0.61 ERA) gets the ball for Tampa Bay. He has won consecutive starts of six-plus innings, two or fewer hits and one run or less.