There are ways to alleviate the pain of a toothache before you visit a dentist by using home remedies. These include rubbing ice between your forefinger and thumb, placing a clove of garlic along with rock salt on the affected area, placing an onion on the tooth and rinsing with salt water.
source