Hello there... the toothache is certainly due to the infected cavity...u need to visit the dentist to diagnose the extent of the infection...based on which further treatment can be planned. Take care !!
Although there are many causes of tooth ache, the most common causes are deep cavities leading to pulp infection and gum disease. For temporary pain relief, you can take any painkiller. I would advice you to visit your dentist so that exact cause of pain can be identified and complete treatment can be done.
Disclaimer : The content is not intended to be a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of your physician or other qualified health provider with any questions you may have regarding your medical condition. Never disregard professional medical advice or delay in seeking it because of something you have read on this website.