Gargle with lukewarm water with salt, a easy and handy antiseptic.
The dentist u consulted must have given you some medication, please take those.
Generally, a pain-killer and if needed an antibiotic will be required.
At the earliest, get the wisdom tooth removed to avoid future episodes.
Next Steps
Prescribing medication without evaluation could be harmful, hence refrain from such doses.
Health Tips
Consult a dentist (most will be available on the phone or some may work late or even on Sundays)