HARTFORD - After days of waiting and hours of counting, former Stamford Mayor Dan Malloy has been declared the next governor of Connecticut.

Bysiewicz released official vote tallies today that showed Malloy, the former Stamford mayor, leading Republican businessman Tom Foley by 5,637 votes, well above the 2,000-vote margin that automatically triggers a re-count. According to the tallies, Malloy received 566,498 votes and Foley had 560,861 votes. Foley had said a recount may be necessary due to the issues that cropped up on Election Day, including Bridgeport running out of ballots.Malloy will be the first Democrat to hold the governorship since William O'Neill in 1991.AP wire services contributed to this report.Press release from secretary of the stateFinish line approaches in race for governorSecretary of the State town by town vote totals in Governor's race Tom Foley's attorney: "missing" bag of ballots just discovered Bysiewicz: Unofficial results pin Malloy as new governor VIDEO: Dan Malloy declares victory in governor's race VIDEO: Tom Foley news conference on the election