Mahinmi scored a career-high 19 points, Nowitzki contributed 18, and the reigning NBA champion Mavericks rallied for their first victory of the season, 99-86 over the Toronto Raptors on Friday night.
Jason Terry added 10 of his 17 points in the final quarter for the Mavericks (1-3), who hadn't started 0-4 since the 2006-07 season.
The last defending NBA champs to open a season at 0-4 were the 1969-70 Boston Celtics.
The Mavs didn't have long to dwell on the disappointment of Thursday night's 104-102 loss at Oklahoma City on Kevin Durant's 3-pointer at the buzzer.
|More on Mavs-Raptors|
"We knew it would happen, it was just a matter of time," Terry said. "We thought it would happen last night, but unfortunately we had to take a bump along the way. But the way we played last night gave us some confidence. Now that we know how we have to play, we're a confident team."
Dallas has five new faces on the roster after losing five key players from a team that won its first title last season.
Mahinmi hit all six field goal attempts, went 7 for 11 from the free throw line, and added five rebounds and two blocked shots.
"I know this was a career high in points for him, but the last two nights he's given us a really high level of energy," Mavs coach Rick Carlisle said. "He's given us a physical presence, he's a combative guy, and he was really big for us tonight."
Andrea Bargnani scored 30 points and Leandro Barbosa had 20 for the Raptors, 1-2 under first-year coach Dwane Casey, Dallas' top assistant and defensive architect last season.
Toronto used a 17-2 run in the third quarter, completed by Amir Johnson's follow dunk, for a 68-61 lead.
But Dallas finished the quarter with a 16-2 spurt, capped by Vince Carter's three free throws, for a 77-70 edge heading into the fourth quarter.
"We've got to understand how to win to beat a championship team," Casey said. "We worked hard to get a 68-61 lead, and then we've got to learn how to close it out. And that's the mark of a young team versus a veteran team."
Toronto never got closer than five points the rest of the way.
"The key part of the game was that 16-2 run," Carlisle said. "That gave us a huge lift."
The Mavericks carried a 29-23 lead into the second quarter, riding a 17-6 rebounding advantage in the opening 12 minutes.
Dallas got off to a better defensive start, a point of emphasis by Carlisle. The Mavs had allowed 32, 32 and 28 points in the first quarter of their three games.
The Mavericks went on to lead by as many as 12 in the second quarter.
But Bargnani scored 13 of his 18 first-half points in the period, and Toronto's late 12-0 run narrowed the halftime gap to 50-46.
After opening the season with blowout home losses to Miami and Denver, the Mavs seem back on track.
"We're playing better basketball," Carlisle said. "The first couple of games were horrible. The last couple of games are games we can build on."
|Jason Kidd puts up nine points, seven rebounds and six assists while guiding Dallas to its first win of the season. (Getty Images)|
|Dallas (1-3) «||29||21||27||22||99|
|TOR:A. Bargnani 30 Pts
TOR:A. Bargnani 7 Reb
TOR:J. Calderon 7 Ast
|DAL:I. Mahinmi 19 Pts
DAL:B. Haywood 9 Reb
DAL:J. Kidd 6 Ast
|Players of the Game|
Dallas Mavericks 2011 NBA Finals Bumper Sticker
$1.99 Shop Now!
|A. Bargnani, C||42||11-18||6-8||7||1||0||30|
|D. DeRozan, SG||35||4-12||3-4||4||4||2||11|
|J. Calderon, PG||33||4-8||1-1||2||7||1||11|
|A. Johnson, SF||28||3-3||0-0||4||1||5||6|
|R. Butler, SG||12||1-3||0-0||4||1||1||2|
|L. Barbosa, SG||31||8-15||2-3||2||3||3||20|
|E. Davis, PF||19||1-3||2-2||6||0||0||4|
|J. Johnson, PF||15||0-3||0-0||4||1||2||0|
|A. Carter, PG||8||0-2||0-0||0||0||2||0|
|J. Bayless, PG||7||1-3||0-0||1||1||2||2|
|J. Magloire, C||6||0-1||0-0||2||0||5||0|
|G. Forbes, SF||4||0-1||0-0||2||1||0||0|
|L. Kleiza, SF||Did Not Play|
|A. Gray, C||Did Not Play|
|S. Alabi, C||Did Not Play|
|Complete Box Score|
|J. Kidd, PG||31||3-8||0-0||7||6||1||9|
|D. Nowitzki, PF||31||7-16||4-5||4||4||0||18|
|S. Marion, PF||30||5-8||2-3||1||2||0||12|
|B. Haywood, C||19||1-2||2-4||9||0||2||4|
|D. West, SG||16||0-5||0-0||2||3||1||0|
|J. Terry, SG||31||5-10||5-6||2||3||0||17|
|I. Mahinmi, C||29||6-6||7-11||5||0||4||19|
|V. Carter, SG||19||3-7||3-3||2||2||2||10|
|R. Beaubois, PG||17||2-6||2-2||2||1||1||7|
|L. Odom, PF||12||0-3||3-4||4||0||2||3|
|B. Cardinal, PF||4||0-1||0-0||1||0||0||0|
|D. Jones, SG||1||0-0||0-0||1||0||0||0|
|S. Williams, PF||Did Not Play|
|B. Wright, PF||Did Not Play|
|Complete Box Score|