CLEVELAND — Zydrunas Ilgauskas scored Cleveland's first six points in the second overtime to lead the Cavaliers to a 104-99 win over the Milwaukee Bucks on Monday night.

LeBron James, who became the youngest player to score 9,000 career points earlier in the game, led Cleveland with 31 points.

James played 51 of 58 minutes in the marathon game. Michael Redd, who led Milwaukee with 22 points, played 54 minutes while Mo Williams played 51.

The score was tied at 93 after the first overtime. A basket by Ilgauskas gave the Cavaliers the lead; Mo Williams' 3-pointer put Milwaukee ahead before another basket by Ilgauskas gave Cleveland a 97-96 lead. Ilgauskas, who scored 24 points, added a jumper from the top of the key at the 1:24 mark for a 99-96 lead. Williams made two free throws before James scored on a drive to put Cleveland ahead again by three.

Redd was fouled with 19.1 seconds left. He made the first shot, but missed the second, but Andrew Bogut missed a point-blank return shot. Ilgauskas grabbed that rebound and the Cavaliers called time. After James made two free throws for a four-point lead, Williams shot an airball on a 3-point attempt and Daniel Gibson split a pair of free throws to put it away.

Cleveland took a 91-87 lead in the first overtime, but baskets by Williams, Redd and Desmond Mason put the Bucks ahead by two with 40.4 seconds left before Devin Brown rebounded a missed shot in the lane and muscled in the rebound to tie the game with 16 seconds to play.

Williams' two free throws with 5.9 seconds left in regulation tied the game at 85 and forced overtime. James missed on a drive to the basket as regulation expired.

Williams finished with 18 points. James was accidentally hit in the face late in regulation, but stayed in the game.

When he made a first-quarter free throw, James reached the 9,000-point plateau at 22 years, 352 days old. James, who entered the game with 8,997 career points, took the record from Lakers guard Kobe Bryant, who was 24 years, 127 days old when he reached 9,000.

SUNS 100, SPURS 95: At San Antonio, Grant Hill had 22 points and Phoenix handed San Antonio its first home loss of the season.

Leandro Barbosa added 18 points for the Suns, whose win might have helped them get the bad taste out of their mouth they brought with them after losing a controversial and testy Western Conference semifinals series last season.

Tim Duncan led the Spurs with a season-high 36 points and 17 rebounds in his second game back since sitting out for four with a sprained ankle, and Manu Ginobili added 18 points. But the Spurs were without Tony Parker, who sat out third straight game with a sprained left ankle.

The Suns were up 74-67 going into fourth quarter after a late third-quarter burst. But the Spurs opened the final period with a 10-2 run capped by Duncan's basket to put San Antonio up 77-76.

MAVERICKS 111, MAGIC 108: At Dallas, Dirk Nowitzki scored 11 of his 31 points in the fourth quarter and Dallas shut down Dwight Howard the final three quarters.

The Magic thought they'd tied the game at 109 when Keith Bogans nailed a long jumper over Nowitzki's outstretched arm with 3.5 seconds left, but officials correctly ruled that his right toe was on the 3-point line, keeping Dallas ahead by a point.

Jerry Stackhouse made a pair of free throws to stretch the lead back to three, but Orlando still had one last chance to tie it — a long, running 3-pointer from the right sideline by Keyon Dooling as time expired.

HEAT 91, TIMBERWOLVES 87: At Miami, Dwyane Wade survived a horrendous shooting night to score 30 points, Udonis Haslem added 18 and Miami finally found a way to win at home, beating Minnesota.

Shaquille O'Neal scored 15 points and added eight rebounds before fouling out for Miami (7-17), which won for only the third time in 11 home games — and was pushed to the brink by a Minnesota team that has the league's worst overall record (3-20).

Wade shot 6-for-22, including 10 straight misses in one stretch. But he had 14 points in the final quarter, when Miami needed him most.

PACERS 119, KNICKS 92: At New York, Mike Dunleavy scored 22 of his career-high 36 points in the third quarter, and the Indiana Pacers beat the New York Knicks.

Jermaine O'Neal added 22 points, two days after sustaining a mild concussion in a victory at Miami. The Pacers, the highest-scoring team in the Eastern Conference, ran away from the Knicks after the game was tied at 64 midway through the third quarter.

Troy Murphy had 17 points and Danny Granger 16 for Indiana, which has won two in a row for the first time since Nov. 27 and 28. The Pacers had alternated losses and wins in eight games since.

WARRIORS 125, GRIZZLIES 117: At Memphis, Stephen Jackson had 28 points and 12 rebounds, and Monta Ellis added 23 points to help Golden State end a three-game road losing streak.

The Golden State victory overshadowed 32 points from Memphis forward Rudy Gay.

BLAZERS 88, HORNETS 76: At Portland, Brandon Roy scored 24 points and had eight assists to lead Portland past New Orleans in a defensive battle.

The Horners were led by Tyson Chandler's 16 points and 19 rebounds.