It is recommended to go to the hospital for relevant examination to clarify the cause of pain and then use the right medication: First, if the examination confirms the presence of urinary tract infection, causing frequent urination, urinary urgency and painful urination, it is recommended to take oral anti-infective medication. Clinically, you can empirically choose quinolones antibiotics, such as levofloxacin hydrochloride capsules, 1 capsule each time, 3 times a day, orally for a week. Or ciprofloxacin tablets, 1 tablet each time, 3 times a day for one week of oral treatment. You can also take cephalosporin antibiotics, such as cefixime capsule, 1 capsule each time, 2 times a day, orally for one week. Secondly, if the presence of pain caused by urethral stones or bladder stones is confirmed, extracorporeal shock wave lithotripsy or surgery is recommended to remove the stones. You can also take urinary stone pill orally, 1 pill each time, 3 times a day for a week, and drink more water and urinate more to observe the stone discharge. Thirdly, if a tumor in the urinary tract is diagnosed, it is recommended to undergo surgery to remove the primary lesion so that the pain can be relieved.