Acute bacterial prostatitis is treated effectively with a two to four week course of oral antibiotics. The most common forms of antibiotics used are trimethoprim-sulfamethoxazole, fluoroquinolones, tetracycline, or doxycycline. To avoid any relapse, it's important to finish the entire course of this treatment, even if you've improved or feel well again. For severe cases, you might need to be treated at a hospital and given intravenous antibiotics. Stool softeners are used to treat symptoms such as painful bowel movements.