Usually, dental pain
is because of infected pulp. And taking painkillers will not help much. If you need a permanent relief, you have to consult a dentist
your xray done and let him advice the necessary treatment. For the time being, you can take any drug having paracetamol
500 mg 2/3 times a day to manage pain. Remember, with medications pain will subside but it is not a permanent solution.