Treatment for prostatitis requires medication selection based on the specific type. Doctors usually prescribe antibiotics, alpha-blockers, or anti-inflammatory drugs based on symptoms. However, it is essential to follow the doctor's instructions after a professional diagnosis and not to use medication arbitrarily.

1. For bacterial prostatitis: If the examination confirms that it is caused by a bacterial infection, the doctor will often use antibiotics, such as quinolones or macrolides, which need to be taken for a course of treatment to completely eliminate the bacteria.

2. For chronic nonbacterial prostatitis: Alpha-blockers may be used to relax the prostate and bladder muscles and relieve urinary discomfort; sometimes nonsteroidal anti-inflammatory drugs (NSAIDs) are also used to reduce pain and inflammation.
3. For accompanying pain and discomfort: If the pain is significant, the doctor may recommend painkillers or muscle relaxants, while physical methods such as warm sitz baths can also help relieve symptoms.
In short, medication for prostatitis varies from person to person, and the key is to first determine the type through a hospital examination. Do not self-medicate; seek medical attention promptly and strictly follow the treatment plan. At the same time, avoid prolonged sitting, drink plenty of water, and maintain a regular sleep schedule, all of which will help with recovery.