Here’s what google says
Avoid hard and crunchy foods
Brush around your wisdom tooth gently
Practice good oral hygiene, including brushing twice a day, flossing, and using mouthwash
Drink plenty of water
Reduce sugar intake
Chew on a piece of onion on the side of your mouth that has the pain.