Of course, this could be many things, but one common cause could be the start of a urinary tract infection. It's pretty easy to treat once diagnosed, just need to hit the doc for a urine test. In the meantime, you can drink cranberry juice and take OTC meds such as AZO to try and help until you can get to the doctor. You don't want to wait too long, if it's a UTI though, cause the pain will just get worse.
Agree. That sounds like a UTI just based on what you wrote but only a doctor can diagnosis that. I would schedule a doctors visit either to your regular doctor or at an urgent care. Antibiotics would be needed and they can prescribe something you take as the antibiotics work that helps decrease the pain (but it turns your urine a funky orange). Good luck