Rinse your mouth. Use salt water or baking soda rinse (dissolve 1 teaspoon of baking soda in 1/2 cup warm water). Dab a small amount of milk of magnesia on your canker sore a few times a day. Avoid abrasive, acidic or spicy foods that can cause further irritation and pain.