Former Mississippi Supreme Court Chief Justice Bill Waller Jr., right, shakes the hand of his Jackson, Miss., voting precinct bailiff Herbert Broome, Tuesday, Aug. 27, 2019, after voting at his Jackson, Miss., precinct. Waller is in a runoff race against Lt. Governor Tate Reeves for the GOP nomination for governor. (AP Photo/Rogelio V. Solis)

JACKSON, Miss. (AP) — Mississippi second-term Lt. Gov. Tate Reeves won the Republican nomination for governor Tuesday, setting up a November general election showdown with Democrat Jim Hood, the state's four-term attorney general.

Reeves, 45, defeated retired Mississippi Supreme Court Chief Justice Bill Waller Jr. in a Republican primary runoff.

Reeves spent more than $6 million this year — the most of any candidate in the race, regardless of party. Waller, 67, spent about $1.4 million. Waller is a retired brigadier general in the Mississippi National Guard and son of the late Gov. Bill Waller Sr., a moderate Democrat who served from 1972 to 1976.

"We've got to work to bring the Republican Party together, and I know that the Republicans across Mississippi are going to rally behind our campaign to ensure that Mississippi does not elect a liberal Democrat to the office of governor," Reeves told The Associated Press before he appeared at his victory party.

Jubilant supporters at the party chanted, "Tate! Tate! Tate! Tate!"

"Jim Hood will tell you that welfare and Washington are the only things we need," Reeves told them.

Waller told a subdued group of supporters at his party that he believes his campaign raised important issues that will continue to be debated leading into the general election, including improving highways, bolstering health care and increasing teacher pay.

"We ran a campaign we can be proud of," Waller said.

Mississippi, Louisiana and Kentucky are the only states electing governors this year, and Mississippi has the only race without an incumbent. Republican Gov. Phil Bryant, who is limited to two terms under Mississippi law, endorsed Reeves.

Hood, 57, is trying to become Mississippi's first Democratic governor since Ronnie Musgrove was unseated in 2003. It's a conservative state that Donald Trump won comfortably in the 2016 presidential election.

Hood easily defeated seven low-budget candidates in the Aug. 6 Democratic primary. In the Aug. 6 Republican primary, Reeves received 49% to Waller's 33%. The third-place candidate, state Rep. Robert Foster, endorsed Waller.

Some minor problems cropped up Tuesday with a small number of voting machines: An electronic machine in northern Mississippi's Lafayette County was reported to be switching votes from one candidate to another, affecting 19 votes, said Anna Moak, spokeswoman for the Mississippi secretary of state's office.

A Waller supporter in Lafayette County, Ethan Peterson, shot video of that machine, which he said already had an X next to Reeves' name when he inserted a card to start his ballot. He tried several times to vote for Waller and said he called a poll worker over for help.

"I told them, 'I'm not going to vote at all if I'm going to vote for Tate,'" Peterson said.

Peterson said he and the poll worker figured out how to clear the screen, and he was able to vote for Waller.

Lafayette County Circuit Clerk Baretta Mosley told the AP that all of the county's voting machines were functioning properly when they were tested Friday. She said a machine can fall out of calibration and malfunction if it is later dropped or handled roughly.

Moak also said that in the state's largest county, Hinds, some electronic poll books used by Republicans were not showing whether people had voted in the Democratic primary Aug. 6. People who vote in one party's primary are banned from voting in the other party's runoff. Moak said poll workers were checking voters' history on paper records that were on hand as a backup.

Waller ran a TV ad portraying himself as the adult in the race. In the ad, a child resembling Reeves and wearing the candidate's oft-preferred khaki pants and blue dress shirt, wreaks havoc at a birthday party.

Reeves has acknowledged his own hard-nosed reputation: In an ad run in the closing days of the campaign, he looks directly at the camera and says, "Now here's something you won't see often in politics. I'm here to tell you my opponent Bill Waller is a nice guy. I respect him, but I disagree with his ideas."

The candidates differed sharply on two issues that dominated the discussion over the past several weeks: gasoline taxes and expanding Medicaid.

Waller proposed increasing the gas tax to pay for highways. He also said he wanted to let people with low-paying jobs purchase Medicaid coverage, similar to a plan that Indiana adopted when Vice President Mike Pence was governor. Waller said the influx of federal money would help keep rural hospitals open.

Reeves opposed both ideas and ran on a record of cutting taxes.

Hood has said he wants to reduce Mississippi's 7% sales tax on groceries at least by half — and possibly altogether. Hood also said he wants to expand Medicaid to the working poor, which is an option under the federal health overhaul that then-President Barack Obama signed into law in 2010. Mississippi is among the 14 states that have not expanded the program.

Two other gubernatorial candidates who are running low-budget campaigns will be on the Nov. 5 general election ballot: the Constitution Party's Bob Hickingbottom and independent David Singletary.

____

Follow Emily Wagster Pettus: http://twitter.com/EWagsterPettus .

Lt. Gov. Tate Reeves, left, and his wife Elee Reeves, share a laugh as he speaks with reporters about the final days of the runoff campaign, for the GOP nomination for governor, Tuesday, Aug. 27, 2019 at his Flowood, Miss., voting precinct. Reeves faces former Mississippi Supreme Court Chief Justice Bill Waller Jr., for the party's nomination. (AP Photo/Rogelio V. Solis)
Lt. Gov. Tate Reeves, right, is greeted by a supporter as he arrives to vote at his Flowood, Miss., precinct with his wife Elee, unseen, Tuesday, Aug. 27, 2019. Reeves faces former Mississippi Supreme Court Chief Justice Bill Waller Jr., for the Republican Party nomination for governor. (AP Photo/Rogelio V. Solis)
Bob Rosson holds a sign supporting Bill Waller during a primary runoff election at the Oxford Conference Center in Oxford, Miss. on Tuesday, Aug.  27, 2019.  Mississippi voters are choosing a Republican nominee for governor, either second-term Lt. Gov. Tate Reeves or retired state Supreme Court Chief Justice Bill Waller. (Bruce Newman/The Oxford Eagle via AP)
Secretary of State Delbert Hosemann, left, confers with friend, Hibbett Neel, outside a north Jackson, Miss., precinct, Tuesday, Aug. 27, 2019, after voting. Hosemann is the GOP party's nominee for lieutenant governor. Featured among the GOP runoff races are contests for the gubernatorial nomination and attorney general. (AP Photo/Rogelio V. Solis)
Lt. Gov. Tate Reeves signs his name onto the electronic voting log as poll worker Shirley Trigg checks his voter id in his Flowood, Miss., precinct, Tuesday, Aug. 27, 2019. Reeves is in a runoff for the Republican Party nomination for governor against former Mississippi Supreme Court Chief Justice Bill Waller Jr. (AP Photo/Rogelio V. Solis)
Sisters-in-law Bae Waller, left, and Yonnie Waller, of former Mississippi Supreme Court Chief Justice Bill Waller Jr., a candidate for the GOP nomination for governor, rush to get his campaign sign out of the rain at a north Jackson, Miss., precinct, Tuesday, Aug. 27, 2019. Waller faces Lt. Governor Tate Reeves in the runoff for the Republican Party nomination for governor. (AP Photo/Rogelio V. Solis)
Volunteers from left, Kim Pinnix, left, and her friend Robyn Agnew, center, wife of justice court judge candidate Bo Agnew, wave at incoming voters, while Jake Williams hoists a
Shelby Wilcher, a campaign volunteer for Lt. Gov. Tate Reeves, uses a steamer to remove wrinkles from the American flag that decorates the back of a stage at his election party in Jackson, Miss., Tuesday, Aug. 27, 2019. Reeves is in a runoff against former Mississippi Supreme Court Chief Justice Bill Waller Jr., for the Republican nomination for governor. (Sarah Warnock/The Clarion-Ledger via AP)
Former Mississippi Supreme Court Chief Justice Bill Waller Jr., speaks to reporters about his hopes for a big turnout of supporters in his runoff race against Lt. Governor Tate Reeves for the GOP nomination for governor, Tuesday, Aug. 27, 2019 at his Jackson, Miss., voting precinct. (AP Photo/Rogelio V. Solis)
Lt. Gov. Tate Reeves casts his vote at a small voting kiosk in his Flowood, Miss., precinct, Tuesday, Aug. 27, 2019. Reeves is in a runoff for the Republican Party nomination for governor against former Mississippi Supreme Court Chief Justice Bill Waller Jr. (AP Photo/Rogelio V. Solis)
Former Mississippi Supreme Court Chief Justice Bill Waller Jr., a candidate for the GOP nomination for governor, right, and his wife Charlotte Waller, put their
Former Mississippi Supreme Court Chief Justice Bill Waller Jr., speaks about his hopes for a big turnout of supporters in his runoff race against Lt. Governor Tate Reeves for the GOP nomination for governor, Tuesday, Aug. 27, 2019, at his Jackson, Miss., voting precinct. (AP Photo/Rogelio V. Solis)