If you have a urinary tract infection, you need to go to the hospital for an examination to determine the cause of the problem and then use symptomatic medication. 1. It is recommended to take levofloxacin hydrochloride capsule orally, one capsule three times a day for one week, or cefixime capsule, one capsule twice a day for one week. If the pain is obvious, you can take oral diclofenac sodium capsule, one capsule, once daily for three days.2. If there are urethral stones present, which can also cause urinary urgency and pain, urethroscopy or ultrasound examination of the urinary system is required. If the stone is located in the urethra, urethroscopic stone extraction or lithotripsy is recommended. If the stone is located in the bladder, extracorporeal shock wave lithotripsy or urethroscopic cystolithotripsy may be considered. Medications can be taken orally to prevent infection, you can choose levofloxacin hydrochloride capsule, one capsule, three times a day, for three consecutive days orally.