If I have a bacterial infection in my vagina can I take something over-the-counter to get rid of the problem like a probiotic or something?

Not likely. Bacterial infection are cured in high percentage with antibiotics. I am not gonna advice you to treat yourself the presumed vaginal infection.Please see your doc and let him find out the problem and treat it.
Bacterial infection. Probiotics help protect against the effects of antibiotics. If it is truly bacterial, you will nedd prescription antibiotics. If its fungal, there are many otc options.