Hello, So for a while now I have been experiencing this pain. Whenever I wake up from sleeping I urinate but I assumed from holding it too long thats why i have the bloating abd sharp pain in my lower abdomen and mid-back. After a while the bloating will go away but the pain will last for hours and then i will frequently use the restroom throughout the day. I have had a uti/kidney infection before but im not sure if that is related.
Well, your history is suggestive of urinary tract infection. If this is a recurrent problem, you have to get investigated. I would advise the following