Medication for prostatitis usually needs to be selected based on the specific type and doctor's diagnosis; self-medication is not recommended. The following is a reference for common medication classifications:

1. Bacterial prostatitis: If caused by a bacterial infection, the doctor may prescribe antibiotics, such as quinolones or macrolides, which need to be taken for the full course of treatment to control the infection.

2. Nonbacterial prostatitis: For non-infectious types, alpha-blockers may be used to relieve urinary discomfort, or nonsteroidal anti-inflammatory drugs may be used to reduce pain and inflammation.
3. Chronic symptom management: Some patients may require medium to long-term medication, such as herbal preparations or traditional Chinese medicine for adjuvant conditioning, but the effect varies from person to person and regular check-ups are required to adjust the treatment plan.
Please note that prostatitis has complex causes, and a definitive diagnosis must be made before using any medication, including urinalysis and prostate fluid examination. Avoid using folk remedies or health supplements indiscriminately, as this may delay treatment. It is recommended to maintain healthy lifestyle habits, such as drinking adequate water, avoiding prolonged sitting, and promptly consult a urologist for standardized treatment under professional guidance.