Mayer got the Redhawks (1-2) going when he found Jack Sorenson on an 18-yard touchdown toss to finish the game-opening eight-play, 93-yard drive.
Early in the second quarter, Camden Orth threw a 24-yard touchdown pass to Derick Eugene to pull the Sharks (0-3) into a 7-7 tie.
But Miami proceeded to establish control of the line of scrimmage and pulled away when Kevin Davis crashed in from three yards out with 5:22 remaining before halftime. Five minutes later, Gabbert threw a 16-yard scoring pass to Jalen Walker for a 21-7 lead.
Miami outgained Long Island 523-216 in total yards.
Orth finished 15-for-21 passing for 178 yards.
More AP college football: https://apnews.com/Collegefootball and https://twitter.com/AP--Top25
Sign up for the AP’s college football newsletter: https://apnews.com/cfbtop25
UCLA AD lays out reasons for move to Big Ten
UCLA athletic director Martin Jarmond expresses how exposure, institutional partnerships and resources are the main factors in UCLA moving to the Big Ten.
2023 college football recruiting class rankings: Post-Arch Manning commits move Texas into top five
Alabama and Miami landed top-25 recruits, while Texas continued its surge up the rankings in the Arch Manning effect.
Pac-12 'to explore all expansion options' after UCLA and USC announce exit to Big Ten in 2024
Pac-12 presidents and chancellors were authorized Friday to "explore all expansion options" for the conference after USC and UCLA decided to join the Big Ten in 2024.
Why the college football landscape could hinge on Notre Dame
Paul Finebaum and Heather Dinich break down why the college football landscape could be shaped by the potential of Notre Dame joining a conference.
NIL turns one: After a year of radical change, what happens next?
Yes, NIL has helped NCAA athletes put money in their pockets. But it's also helped them realize their power moving forward.
College football recruiting: Predicting where top uncommitted prospects will land
Several top college football recruits are set to make their commitments over the next week or two. Where will they decide?