A doctor may prescribe medication, but otherwise, antifungal powders and creams can be purchased over-the-counter to treat the infection. In addition, experts suggest avoiding sugar while treating the infection, as sugar acts as a food source for yeast.