If the bond, when required, be given, and the costs be paid, the person shall be discharged from custody, but otherwise he shall be committed to jail until he shall give such bond and pay the costs, or until the expiration of the time for which he was required to furnish security; and in such case the mittimus must state the cause of the commitment, the amount of bail, and the number of sureties required, the time for which the person is to be bound to keep the peace, and the amount of costs taxed against him. He may at any time procure his discharge by giving the required bond, approved by the sheriff of the county, and paying the costs and the jail fees accrued, if any.
Miss. Code § 99-23-5