The ex-Detroit mayor has been sentenced to five years in prison for violating the terms of his probation.