Please help with preventing yeast infections i get them sooooooo bad

I need help its so painful been to doctor on meds but i need this to never come back like this i feel it coming out of my vagina snd it burnnnss omg omg im in so much freaking pain