Antibiotics may be used to treat infections caused by bacteria. Other treatments for these types of infections may include:  Drinking lots of fluids Eating sour, sugarless candy to encourage the production of saliva Warm compresses to the infected gland