Have Urology Questions? Ask a Urologist Online.
It could be bacteria infection of the urethra. You should go to the ER to have an urine test and get antibiotics.
Hope you get better soon.
Usually you will be better within 1 week. Take pain mediation. If the pain doesn't get better, you should see a urologist to have an exam to exclude a urethral stone, herpes infection, fungal infection, and so forth.